fix rollup-error and use commonjs for the rollup-config

This commit is contained in:
BuckarooBanzay 2022-10-18 06:34:09 +02:00
parent f3b3e189b0
commit 98279eec40
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"jshint": "cd js && jshint .",
"bundle": "cd js && rollup -c rollup.config.js"
"bundle": "rollup -c rollup.config.js"
},
"author": "",
"license": "ISC",

View File

@ -1,8 +1,8 @@
export default {
input: 'main.js',
module.exports = {
input: 'js/main.js',
output: {
file :'bundle.js',
file :'js/bundle.js',
format: 'iife',
sourcemap: true,
compact: true