From ce31dfd4a6befbbaf4c3c9022c0a0f6a786da03c Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 15 May 2020 21:30:15 +0200 Subject: [PATCH] Fix legacy build by defining ol alias --- config/webpack-config-legacy-build.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/webpack-config-legacy-build.js b/config/webpack-config-legacy-build.js index 33634de5b2..6b4e60b5fa 100644 --- a/config/webpack-config-legacy-build.js +++ b/config/webpack-config-legacy-build.js @@ -3,6 +3,11 @@ module.exports = { entry: './build/index.js', devtool: 'source-map', mode: 'production', + resolve: { + alias: { + ol: path.resolve('./src/ol'), + }, + }, output: { path: path.resolve('./build/legacy'), filename: 'ol.js',