Skip to content

Commit c420625

Browse files
committed
fix: miss webpack externals config.
1 parent 6f3a886 commit c420625

File tree

3 files changed

+59
-55
lines changed

3 files changed

+59
-55
lines changed

build/webpack.prod.conf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ if (!isExampleEnv) {
4242
library: 'VueJsonPretty',
4343
libraryTarget: 'umd',
4444
};
45+
webpackConfig.externals = {
46+
vue: 'vue',
47+
};
4548
webpackConfig.plugins.push(
4649
// extract css into its own file
4750
new MiniCssExtractPlugin({

package-lock.json

Lines changed: 54 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-json-pretty",
3-
"version": "2.0.0-rc.3",
3+
"version": "1.7.1",
44
"description": "A JSON tree view component that is easy to use and also supports data selection.",
55
"author": "leezng <[email protected]>",
66
"main": "lib/vue-json-pretty.js",
@@ -35,7 +35,7 @@
3535
"@babel/preset-typescript": "^7.12.1",
3636
"@typescript-eslint/eslint-plugin": "^4.7.0",
3737
"@typescript-eslint/parser": "^4.7.0",
38-
"@vue/babel-plugin-jsx": "^1.0.0-rc.3",
38+
"@vue/babel-plugin-jsx": "^1.0.0-rc.4",
3939
"@vue/compiler-sfc": "^3.0.4",
4040
"@vue/eslint-config-typescript": "^7.0.0",
4141
"autoprefixer": "^10.0.1",

0 commit comments

Comments
 (0)