Skip to content

Commit fcfbd80

Browse files
committed
Fix rollup build command to include bundle config as CommonJS in package.json
1 parent 628c74c commit fcfbd80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"lint:fix": "./node_modules/.bin/eslint --ext ts,js --fix src/",
4040
"lint:staged": "./node_modules/.bin/lint-staged",
4141
"fix": "npm run fmt && npm run lint:fix",
42-
"build:vue2": "rollup --config rollup.vue2-config.js",
43-
"build:vue3": "rollup --config rollup.vue3-config.js",
42+
"build:vue2": "rollup --config rollup.vue2-config.js --bundleConfigAsCjs",
43+
"build:vue3": "rollup --config rollup.vue3-config.js --bundleConfigAsCjs",
4444
"build:dts:vue2": "./node_modules/.bin/dts-bundle-generator -o ./dist/vue2.d.ts src/RayVue2.ts",
4545
"build:dts:vue3": "./node_modules/.bin/dts-bundle-generator -o ./dist/vue2.d.ts src/RayVue2.ts",
4646
"build:all": "concurrently npm:build:vue2 npm:build:vue3 && concurrently npm:build:dts:vue2 npm:build:dts:vue3",

0 commit comments

Comments
 (0)