Skip to content

Commit

Permalink
updated UMD处理
Browse files Browse the repository at this point in the history
  • Loading branch information
mumuy committed Jul 18, 2024
1 parent 046b46c commit d7f698e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/widget-qrcode.min.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qrcode-tool",
"version": "1.0.0",
"name": "widget-qrcode",
"version": "1.0.4",
"description": "qrcode component",
"author": "HaoLe Zheng",
"license": "MIT",
Expand All @@ -22,6 +22,9 @@
"yarn": "please-use-npm",
"npm": ">=8"
},
"files":[
"dist"
],
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/plugin-syntax-import-attributes": "^7.22.5",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const commonPlugins = [
input: './src/widget-qrcode.js',
output:[{
file: './dist/widget-qrcode.min.js',
format: 'iife',
format: 'umd',
banner
}],
acornInjectPlugins: [ importAssertions ],
Expand Down

0 comments on commit d7f698e

Please sign in to comment.