packaging: updated JS dependencies with new node2nix and nodejs12

This commit is contained in:
Marcin Kuzminski 2020-05-12 11:49:52 +02:00
parent e47479eb95
commit 847c8b496f
4 changed files with 259 additions and 200 deletions

View file

@ -20,7 +20,7 @@ let babelRCOptions = {
}]
],
"plugins": ["transform-object-rest-spread"]
}
};
module.exports = {
// Tell Webpack which file kicks off our app.
@ -33,6 +33,7 @@ module.exports = {
},
// Tell Webpack which directories to look in to resolve import statements.
// Normally Webpack will look in node_modules by default but since were overriding
// the property well need to tell it to look there.
resolve: {
modules: [
path.resolve(__dirname, 'node_modules'),
@ -55,8 +56,7 @@ module.exports = {
// polymer-webpack-loader, and hand the output to
// babel-loader. This let's us transpile JS in our `<script>` elements.
use: [
{loader: 'babel-loader',
options: babelRCOptions},
{loader: 'babel-loader', options: babelRCOptions},
{loader: 'polymer-webpack-loader',
options: {
processStyleLinks: true,