forked from lchzh3473/sim-phi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts.timestamp-1720756715521-bfb0b8c4b3384.mjs
92 lines (90 loc) · 7.96 KB
/
vite.config.ts.timestamp-1720756715521-bfb0b8c4b3384.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
// package.json
var require_package = __commonJS({
"package.json"(exports, module) {
module.exports = {
name: "sim-phi-vite",
private: true,
version: "1.5.9",
type: "module",
scripts: {
dev: "vite",
build: "tsc && vite build && node scripts/build.js",
preview: "vite preview",
"eslint:check": "eslint --ext .js,.ts src",
"eslint:format": 'eslint --fix "src/**/*.{js,ts}"',
validate: "office-toolbox validate -m manifest.xml"
},
dependencies: {
"@sim-phi/extends": "^0.3.4",
jszip: "^3.10.1",
md5: "^2.3.0",
"stackblur-canvas": "^2.7.0",
"office-toolbox": "^0.1.1"
},
devDependencies: {
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@stylistic/eslint-plugin": "^1.7.0",
"@types/eslint": "^8.56.9",
"@types/md5": "^2.3.5",
"@types/prompts": "^2.4.9",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
eslint: "^8.57.0",
"eslint-plugin-rulesdir": "^0.2.2",
picocolors: "^1.0.0",
prompts: "^2.4.2",
"ts-node": "^10.9.2",
typescript: "^5.5.3",
vite: "^5.2.8"
}
};
}
});
// vite.config.ts
import { defineConfig } from "file:///D:/desktop/Phigros/sim-phi/sim-phi/node_modules/vite/dist/node/index.js";
import terser from "file:///D:/desktop/Phigros/sim-phi/sim-phi/node_modules/@rollup/plugin-terser/dist/es/index.js";
import { getBabelOutputPlugin } from "file:///D:/desktop/Phigros/sim-phi/sim-phi/node_modules/@rollup/plugin-babel/dist/es/index.js";
var pkg = require_package();
var vite_config_default = defineConfig({
base: "./",
resolve: {
alias: {
"@": "/src"
}
},
build: {
lib: {
entry: "src/index.ts",
name: "SimPhiVite",
formats: ["es"],
fileName: `script-${pkg.version}`
},
sourcemap: true,
cssTarget: "chrome61",
rollupOptions: {
external: [/^\/utils\//],
output: {
plugins: [
getBabelOutputPlugin({
plugins: [["@babel/plugin-transform-nullish-coalescing-operator"]]
}),
terser({ compress: { passes: 3 } })
]
}
}
},
preview: {
host: true,
port: 2085
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsicGFja2FnZS5qc29uIiwgInZpdGUuY29uZmlnLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJ7XHJcbiAgXCJuYW1lXCI6IFwic2ltLXBoaS12aXRlXCIsXHJcbiAgXCJwcml2YXRlXCI6IHRydWUsXHJcbiAgXCJ2ZXJzaW9uXCI6IFwiMS41LjlcIixcclxuICBcInR5cGVcIjogXCJtb2R1bGVcIixcclxuICBcInNjcmlwdHNcIjoge1xyXG4gICAgXCJkZXZcIjogXCJ2aXRlXCIsXHJcbiAgICBcImJ1aWxkXCI6IFwidHNjICYmIHZpdGUgYnVpbGQgJiYgbm9kZSBzY3JpcHRzL2J1aWxkLmpzXCIsXHJcbiAgICBcInByZXZpZXdcIjogXCJ2aXRlIHByZXZpZXdcIixcclxuICAgIFwiZXNsaW50OmNoZWNrXCI6IFwiZXNsaW50IC0tZXh0IC5qcywudHMgc3JjXCIsXHJcbiAgICBcImVzbGludDpmb3JtYXRcIjogXCJ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