Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = on => {
const options = webpackPreprocessor.defaultOptions;
const olProvider = new webpack.ProvidePlugin({ ol: "openlayers" });
options.webpackOptions.plugins = [olProvider];
const config = Neutrino().use('.neutrinorc.js').config.toConfig();
options.webpackOptions.module.rules.push(...config.module.rules);
on("file:preprocessor", webpackPreprocessor(options));
};