Skip to content

Commit ef711da

Browse files
chore: Update npm dependencies and move to new versions (#14)
1 parent 56c3386 commit ef711da

File tree

4 files changed

+32
-8856
lines changed

4 files changed

+32
-8856
lines changed

.babelrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"modules": false
7+
}
8+
]
9+
]
10+
}

build/build.javascript.js

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
const path = require('path')
1+
const path = require("path");
22

3-
const babel = require('rollup-plugin-babel')
4-
const uglify = require('rollup-plugin-uglify')
5-
const commonjs = require('rollup-plugin-commonjs')
6-
const resolve = require('rollup-plugin-node-resolve')
3+
const { babel } = require("@rollup/plugin-babel");
4+
const { terser } = require("rollup-plugin-terser");
5+
const commonjs = require("@rollup/plugin-commonjs");
6+
const { nodeResolve } = require("@rollup/plugin-node-resolve");
77

8-
const config = require('./config')
8+
const config = require("./config");
99

1010
module.exports = {
11-
input: path.join(config.paths.assets, 'js/app.js'),
11+
input: path.join(config.paths.assets, "js/app.js"),
1212
output: {
13-
file: path.join(config.paths.public, 'js/app.js'),
14-
format: 'iife'
13+
file: path.join(config.paths.public, "js/app.js"),
14+
format: "iife",
1515
},
16-
plugins: [
17-
resolve(),
18-
commonjs(),
19-
babel(),
20-
uglify()
21-
]
22-
}
16+
plugins: [nodeResolve(), commonjs(), babel(), terser()],
17+
};

0 commit comments

Comments
 (0)