Closed xavianaxw closed 6 years ago
babelLoader: {
// "test" is derived from TASK_CONFIG.javascripts.extensions
// "options" is derived from TASK_CONFIG.javascripts.babel
loader: "babel-loader",
exclude: /node_modules\/(?!(dom7|swiper)\/).*/,
},
in task-config.js
fixed this for me
I know this isn't a blendid issue but ...
I'm having issues compiling Swiper 4 for production where the error below will be thrown during compilation:
There's an issue on it from the swiper repo regarding this at #2206 where it states it is using ES-Next so I am required to use
babel-loader
or import 'correct version' withimport Swiper from 'swiper/dist/js/swiper.js';
My
javascript
config now currently looks like this:How should I go about to fix this?