Skip to content

Commit 560ae8f

Browse files
TheLarkInnhansl
authored andcommitted
fix: Set fs building/polyfill empty for better package support (#1599)
1 parent ace720b commit 560ae8f

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

addon/ng2/models/webpack-build-common.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,12 @@ export function getWebpackCommonConfig(projectRoot: string, sourceDir: string) {
7575
}),
7676
new CopyWebpackPlugin([{
7777
context: path.resolve(projectRoot, './public'),
78-
from: '**/*',
78+
from: '**/*',
7979
to: path.resolve(projectRoot, './dist')
8080
}])
8181
],
8282
node: {
83+
fs: 'empty',
8384
global: 'window',
8485
crypto: 'empty',
8586
module: false,

addon/ng2/models/webpack-build-development.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const getWebpackDevConfigPartial = function(projectRoot: string, sourceDi
1717
resourcePath: path.resolve(projectRoot, `./${sourceDir}`)
1818
},
1919
node: {
20+
fs: 'empty',
2021
global: 'window',
2122
crypto: 'empty',
2223
process: true,

addon/ng2/models/webpack-build-production.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const getWebpackProdConfigPartial = function(projectRoot: string, sourceD
5050
customAttrAssign: [/\)?\]?=/]
5151
},
5252
node: {
53+
fs: 'empty',
5354
global: 'window',
5455
crypto: 'empty',
5556
process: true,

addon/ng2/models/webpack-build-test.js

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const getWebpackTestConfig = function(projectRoot, sourceDir) {
8686
resourcePath: `./${sourceDir}`
8787
},
8888
node: {
89+
fs: 'empty',
8990
global: 'window',
9091
process: false,
9192
crypto: 'empty',

0 commit comments

Comments
 (0)