Skip to content

Commit

Permalink
Change composite-checkout's webpack config to support calypso:src
Browse files Browse the repository at this point in the history
  • Loading branch information
scinos committed Oct 30, 2020
1 parent c4916c0 commit 04ada0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/calypso-build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function getWebpackConfig(
},
resolve: {
extensions: [ '.json', '.js', '.jsx', '.ts', '.tsx' ],
mainFields: [ 'browser', 'calypso:src', 'module', 'main' ],
modules: [ 'node_modules' ],
},
node: false,
Expand Down
5 changes: 4 additions & 1 deletion packages/composite-checkout/webpack.config.demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ module.exports = {
},
],
},
resolve: { extensions: [ '*', '.js', '.jsx' ] },
resolve: {
extensions: [ '*', '.js', '.jsx' ],
mainFields: [ 'browser', 'calypso:src', 'module', 'main' ],
},
output: {
path: path.resolve( __dirname, '/dist/' ),
publicPath: '/dist/',
Expand Down
5 changes: 4 additions & 1 deletion packages/composite-checkout/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ module.exports = {
},
],
},
resolve: { extensions: [ '*', '.js', '.jsx' ] },
resolve: {
extensions: [ '*', '.js', '.jsx' ],
mainFields: [ 'browser', 'calypso:src', 'module', 'main' ],
},
output: {
path: path.resolve( __dirname, 'dist/' ),
publicPath: '/dist/',
Expand Down

0 comments on commit 04ada0c

Please sign in to comment.