Skip to content

Commit a54833b

Browse files
committed
fix(csp): update ol and fix webpack type (#2138)
1 parent c9e8835 commit a54833b

File tree

4 files changed

+185
-33
lines changed

4 files changed

+185
-33
lines changed

packages/netlify-cms-proxy-server/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
entry: { index: path.join('src', 'index.ts'), middlewares: path.join('src', 'middlewares.ts') },
1111
mode: NODE_ENV,
1212
target: 'node',
13-
devtool: 'source-map',
13+
devtool: 'cheap-module-source-map',
1414
output: {
1515
path: path.resolve(__dirname, 'dist'),
1616
filename: '[name].js',

packages/netlify-cms-widget-map/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"react-immutable-proptypes": "^2.1.0"
3131
},
3232
"dependencies": {
33-
"ol": "^5.3.1"
33+
"ol": "^6.9.0"
3434
}
3535
}

scripts/webpack.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ function baseConfig({ target = isProduction ? 'umd' : 'umddir' } = {}) {
150150
return externals.some(isPeerDep) ? cb(null, request) : cb();
151151
},
152152
stats: stats(),
153+
node: {
154+
global: false,
155+
},
153156
};
154157
}
155158

0 commit comments

Comments
 (0)