Skip to content

Commit

Permalink
Add a plugin to wrap the whole result minified code in an IIFE
Browse files Browse the repository at this point in the history
  • Loading branch information
mahozad committed Mar 4, 2022
1 parent c0dad00 commit a659c31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
]
],
"plugins": [
"rewire-test-env-only"
"rewire-test-env-only",
"iife-wrap"
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"@babel/core": "^7.17.5",
"@babel/preset-env": "^7.16.11",
"babel-minify": "^0.5.1",
"babel-plugin-iife-wrap": "^1.1.0",
"babel-plugin-rewire-test-env-only": "^1.0.0",
"jsdom": "^19.0.0",
"jest": "^27.5.1",
Expand Down
8 changes: 4 additions & 4 deletions theme-switch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a659c31

Please sign in to comment.