Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

Commit 3979489

Browse files
committed
Merge pull request #68 from reduct/development
[BUGFIX] Add derequire to the build setup to avoid errors when import…
2 parents 8e4ebcf + c251d32 commit 3979489

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "dist/component.js",
55
"scripts": {
66
"postinstall": "npm run build",
7-
"build": "browserify src/component.js -o dist/component.js --standalone reduct.Component -t [ babelify --presets [ es2015 ] ]",
7+
"build": "browserify src/component.js -o dist/component.js --standalone reduct.Component -t [ babelify --presets [ es2015 ] ] -p browserify-derequire",
88
"lint": "xo src/**/*.js",
99
"mocha": "export TEST=true && find ./src -name '*.spec.js' | xargs istanbul cover -x *.spec.js _mocha -- -R spec --compilers js:babel/register",
1010
"test": "npm run lint && npm run mocha && npm run build",
@@ -76,6 +76,7 @@
7676
"@reduct/logger": "^1.0.2",
7777
"babel-preset-es2015": "^6.1.18",
7878
"babelify": "^7.2.0",
79-
"browserify": "^12.0.1"
79+
"browserify": "^12.0.1",
80+
"browserify-derequire": "^0.9.4"
8081
}
8182
}

0 commit comments

Comments
 (0)