Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(err, result) => {
if (err) return reject(err);
resolve({
code: result.css.toString(),
map: result.map.toString()
});
}
);
});
}
}
}),
resolve(),
commonjs(),
json(),
babel({
// don't exclude anything!
// exclude: [/node_modules\/(?!(@datawrapper|svelte)\/).*/],
extensions: ['.js', '.mjs', '.html'],
babelHelpers: 'runtime',
presets: [
[
'@babel/env',
{
targets: 'last 2 versions, not IE 10, not dead',
corejs: 3,
useBuiltIns: 'entry'
}
]
(err, result) => {
if (err) return reject(err);
resolve({
code: result.css.toString(),
map: result.map.toString()
});
}
);
});
}
}
}),
resolve(),
commonjs(),
json(),
babel({
// don't exclude anything!
// exclude: [/node_modules\/(?!(@datawrapper|svelte)\/).*/],
extensions: ['.js', '.mjs', '.html'],
babelHelpers: 'runtime',
presets: [
[
'@babel/env',
{
targets: 'last 2 versions, not IE 10, not dead',
corejs: 3,
useBuiltIns: 'entry'
}
]
}),
json(),
resolve({
dedupe: [
'react',
'object-assign',
'prop-types',
'scheduler',
'react-reconciler',
],
extensions,
customResolveOptions: {
moduleDirectory: 'node_modules',
},
}),
commonjs({
include: /node_modules/,
namedExports,
extensions,
ignoreGlobal: false,
}),
stub({
modules: stubModules,
}),
babel({
include: entries.pages.map(p => p.file),
extensions: without(extensions, '.json'),
usePlugins: [nativeComponentsBabelPlugin(options, adapter), page],
reactPreset: false,
}),
babel({
include: entries.app,