From 3b2e0d59490e2f41eb8bd5660023667310a1b4f3 Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Sat, 5 Oct 2019 13:15:15 +0900 Subject: [PATCH 1/4] Support vue files --- template/ui/build/script.javascript.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/ui/build/script.javascript.js b/template/ui/build/script.javascript.js index 445d4ab..ac9391f 100644 --- a/template/ui/build/script.javascript.js +++ b/template/ui/build/script.javascript.js @@ -4,6 +4,7 @@ const uglify = require('uglify-es') const buble = require('rollup-plugin-buble') const json = require('rollup-plugin-json') const nodeResolve = require('rollup-plugin-node-resolve') +const VuePlugin = require('rollup-plugin-vue') const buildConf = require('./config') const buildUtils = require('./utils') @@ -13,6 +14,7 @@ const rollupPlugins = [ extensions: ['.js'], preferBuiltins: false }), + VuePlugin(), json(), buble({ objectAssign: 'Object.assign' From 73335a4180bc4c8d9a5723f2449bb5c6d62bb1b4 Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Sat, 5 Oct 2019 13:16:22 +0900 Subject: [PATCH 2/4] support vue files --- template/ui/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/ui/package.json b/template/ui/package.json index 51b2659..9c47645 100644 --- a/template/ui/package.json +++ b/template/ui/package.json @@ -39,7 +39,9 @@ "rollup-plugin-buble": "^0.19.8", "rollup-plugin-json": "^4.0.0", "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-vue": "^5.0.1", "uglify-es": "^3.3.9", + "vue-template-compiler": "^2.6.10", "zlib": "^1.0.5" }, "browserslist": [ From 28860493758328a23495ae1246880449334ec1d1 Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Sat, 5 Oct 2019 13:37:55 +0900 Subject: [PATCH 3/4] add commonjs --- template/ui/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/template/ui/package.json b/template/ui/package.json index 9c47645..0819ad7 100644 --- a/template/ui/package.json +++ b/template/ui/package.json @@ -37,6 +37,7 @@ "rimraf": "^3.0.0", "rollup": "^1.21.3", "rollup-plugin-buble": "^0.19.8", + "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-json": "^4.0.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-vue": "^5.0.1", From d6c31bbc82cdf1f95efd4fed9c8ad88c6dd1215e Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Sat, 5 Oct 2019 13:38:33 +0900 Subject: [PATCH 4/4] add commonjs --- template/ui/build/script.javascript.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/ui/build/script.javascript.js b/template/ui/build/script.javascript.js index ac9391f..2b77ab6 100644 --- a/template/ui/build/script.javascript.js +++ b/template/ui/build/script.javascript.js @@ -5,11 +5,13 @@ const buble = require('rollup-plugin-buble') const json = require('rollup-plugin-json') const nodeResolve = require('rollup-plugin-node-resolve') const VuePlugin = require('rollup-plugin-vue') +const commonjs = require('rollup-plugin-commonjs') const buildConf = require('./config') const buildUtils = require('./utils') const rollupPlugins = [ + commonjs(), nodeResolve({ extensions: ['.js'], preferBuiltins: false