Skip to content

Commit 8a81af8

Browse files
authored
Merge pull request #57 from karlvr/externals
Remove webpack externals configuration
2 parents 82efcb3 + 75d8ecc commit 8a81af8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

webpack/library.cfg.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ function containsObject(obj, list) {
1717
}
1818

1919
const externals = [];
20-
const explicitExternals = [];
2120
const internals = ['fabric', 'canvas'];
22-
Object.keys(require('../package.json').devDependencies).forEach(function(k) {
23-
if (!containsObject(k, internals)) externals.push(k);
24-
});
2521

2622
module.exports = {
2723
entry: {
@@ -35,9 +31,6 @@ module.exports = {
3531
filename: 'index.js',
3632
libraryTarget: 'umd'
3733
},
38-
//Every non-relative module is external apart from those given.
39-
//externals: [/^(?!fabric|canvas|base64-js|ieee754|isarray|jsdom|xmldom)[a-z\-0-9]+$/],
40-
externals: explicitExternals.concat(externals),
4134
resolve: {
4235
extensions: ['.js', '.jsx']
4336
},

0 commit comments

Comments
 (0)