Skip to content

Commit

Permalink
fix: vue2 test and minify
Browse files Browse the repository at this point in the history
  • Loading branch information
JiLiZART committed Nov 20, 2022
1 parent a31c97e commit af3ba58
Show file tree
Hide file tree
Showing 8 changed files with 1,761 additions and 750 deletions.
7 changes: 4 additions & 3 deletions .swcrc-commonjs.json
@@ -1,10 +1,11 @@
{
"module": {
"type": "umd",
"strict": true,
"type": "commonjs",

"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": true
"noInterop": false
},
"jsc": {
"transform": {
Expand Down
2 changes: 1 addition & 1 deletion .swcrc.json
Expand Up @@ -13,7 +13,7 @@
"simplify": false
}
},
"target": "es2020",
"target": "es2018",
"loose": true,
"parser": {
"syntax": "ecmascript",
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
@@ -1,6 +1,6 @@
const fs = require('fs');

const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc.json`, 'utf-8'));
const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc-commonjs.json`, 'utf-8'));

module.exports = {
verbose: true,
Expand Down
90 changes: 47 additions & 43 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -26,7 +26,6 @@
"@rollup/plugin-commonjs": "23.0.2",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-replace": "5.0.1",
"@rollup/plugin-terser": "0.1.0",
"@size-limit/preset-small-lib": "6.0.1",
"@swc/cli": "0.1.57",
"@swc/core": "1.3.16",
Expand All @@ -50,7 +49,7 @@
"rimraf": "^3.0.2",
"rollup": "3.3.0",
"rollup-plugin-gzip": "3.1.0",
"rollup-plugin-swc": "0.2.1",
"rollup-plugin-swc3": "0.7.0",
"size-limit": "6.0.1"
},
"publishConfig": {
Expand Down

0 comments on commit af3ba58

Please sign in to comment.