Skip to content

Webpack2 Fix #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
const readJSON = require('read-package-json')
const multipipe = require('multipipe')
const from2 = require('from2-array')
const resolve = require('resolve')
const map = require('map-limit')
const findup = require('findup')
const path = require('path')
const bl = require('bl')

module.exports = loader

Expand Down Expand Up @@ -61,17 +58,10 @@ function loader (source) {
if (err) return done(err)

transforms.forEach(function (tr) {
tr.on('file', function (file) {
self.addDependency(file)
})
self.addDependency(tr)
})

transforms = []
.concat(from2([source]))
.concat(transforms)

multipipe.apply(this, transforms)
.pipe(bl(done))
done(null, transforms.join(''))
})
})
}
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@
"url": "https://github.com/hughsk"
},
"dependencies": {
"bl": "^1.0.0",
"findup": "^0.1.5",
"from2-array": "0.0.4",
"map-limit": "0.0.1",
"multipipe": "^0.3.0",
"read-package-json": "^2.0.2",
"resolve": "^1.1.6"
},
Expand Down