Skip to content

Commit

Permalink
fix(csp): update ol and fix webpack type (#2138)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagda1 committed Nov 22, 2021
1 parent c9e8835 commit a54833b
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/netlify-cms-proxy-server/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
entry: { index: path.join('src', 'index.ts'), middlewares: path.join('src', 'middlewares.ts') },
mode: NODE_ENV,
target: 'node',
devtool: 'source-map',
devtool: 'cheap-module-source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
Expand Down
2 changes: 1 addition & 1 deletion packages/netlify-cms-widget-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"react-immutable-proptypes": "^2.1.0"
},
"dependencies": {
"ol": "^5.3.1"
"ol": "^6.9.0"
}
}
3 changes: 3 additions & 0 deletions scripts/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ function baseConfig({ target = isProduction ? 'umd' : 'umddir' } = {}) {
return externals.some(isPeerDep) ? cb(null, request) : cb();
},
stats: stats(),
node: {
global: false,
},
};
}

Expand Down
Loading

0 comments on commit a54833b

Please sign in to comment.