mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
add json module to rollup config, add axios and tabulator to package json
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@vuepic/vue-datepicker": "^7.2.0",
|
||||
"axios": "^1.6.8",
|
||||
"primevue": "^3.29.1",
|
||||
"tabulator-tables": "^5.5.2",
|
||||
"vue": "^3.3.8",
|
||||
"vue-router": "^4.1.3"
|
||||
},
|
||||
@@ -17,6 +19,7 @@
|
||||
"@rollup/plugin-alias": "^5.1.0",
|
||||
"@rollup/plugin-babel": "^6.0.4",
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-replace": "^5.0.5",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
|
||||
@@ -10,6 +10,7 @@ import replace from '@rollup/plugin-replace';
|
||||
import alias from '@rollup/plugin-alias';
|
||||
import { existsSync } from 'node:fs';
|
||||
import terser from '@rollup/plugin-terser';
|
||||
import json from '@rollup/plugin-json';
|
||||
|
||||
function FhcResolver () {
|
||||
return {
|
||||
@@ -59,6 +60,7 @@ export default {
|
||||
}
|
||||
}),
|
||||
nodeResolve({
|
||||
preferBuiltins: true,
|
||||
moduleDirectories: ['node_modules'],
|
||||
modulePaths: globSync('application/extensions/*/node_modules', {follow: true, realpath: true}).map(file =>
|
||||
fileURLToPath(new URL(file, import.meta.url))
|
||||
@@ -71,6 +73,7 @@ export default {
|
||||
}),
|
||||
commonjs(),
|
||||
vue(),
|
||||
json(),
|
||||
babel({
|
||||
babelHelpers: 'bundled',
|
||||
plugins: ['transform-class-properties']
|
||||
|
||||
Reference in New Issue
Block a user