Skip to content

Commit

Permalink
fix rollup-error and use commonjs for the rollup-config
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Oct 18, 2022
1 parent f3b3e18 commit 98279ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions public/js/rollup.config.js → public/rollup.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 98279ee

Please sign in to comment.