Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 89a5b33

Browse files
committed
chore: use latest vue-component-compiler
1 parent f2c524c commit 89a5b33

File tree

9 files changed

+4200
-382
lines changed

9 files changed

+4200
-382
lines changed

example/Hello.vue

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
<template>
2-
<div class="hello"></div>
1+
<template functional>
2+
<div class="hello">{{ props.message }}</div>
33
</template>
44

55
<script>
66
export default {
7-
data() {
8-
return {
9-
msg: 'Hello World!'
10-
}
11-
}
7+
props: ['message']
128
}
139
</script>
10+
11+
12+
<style scoped>
13+
.hello {
14+
color: red;
15+
}
16+
</style>

example/Hello.vue.json

-1
This file was deleted.

example/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"vue-style-loader": "^3.0.3"
99
},
1010
"dependencies": {
11-
"resolve": "^1.4.0"
11+
"resolve": "^1.4.0",
12+
"rollup-plugin-buble": "^0.19.2"
1213
}
1314
}

example/rollup.config.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ const buble = require('rollup-plugin-buble')
66
// const closure = require('rollup-plugin-closure-compiler-js')
77
const node = require('rollup-plugin-node-resolve')
88
// const commonjs = require('rollup-plugin-commonjs')
9+
10+
process.env.NODE_ENV = 'production'
11+
912
export default {
1013
name: 'ff',
1114
input: 'index.js',
1215
format: 'es',
13-
plugins: [vue(), buble()],
14-
external: [
15-
'vue-component-compiler/src/runtime/normalize-component',
16-
'vue-component-compiler/src/runtime/inject-style-client'
17-
]
16+
plugins: [vue(), buble()]
1817
}

example/yarn.lock

+76-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22
# yarn lockfile v1
33

44

5+
acorn-dynamic-import@^3.0.0:
6+
version "3.0.0"
7+
resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278"
8+
dependencies:
9+
acorn "^5.0.0"
10+
11+
acorn-jsx@^4.1.1:
12+
version "4.1.1"
13+
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-4.1.1.tgz#e8e41e48ea2fe0c896740610ab6a4ffd8add225e"
14+
dependencies:
15+
acorn "^5.0.3"
16+
17+
acorn@^5.0.0, acorn@^5.0.3, acorn@^5.4.1:
18+
version "5.5.3"
19+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.5.3.tgz#f473dd47e0277a08e28e9bec5aeeb04751f0b8c9"
20+
521
acorn@^5.1.1:
622
version "5.1.2"
723
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.2.tgz#911cb53e036807cf0fa778dc5d370fbd864246d7"
@@ -18,6 +34,12 @@ ansi-styles@^2.2.1:
1834
version "2.2.1"
1935
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
2036

37+
ansi-styles@^3.2.1:
38+
version "3.2.1"
39+
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
40+
dependencies:
41+
color-convert "^1.9.0"
42+
2143
arr-diff@^2.0.0:
2244
version "2.0.0"
2345
resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
@@ -199,6 +221,19 @@ browser-resolve@^1.11.0:
199221
dependencies:
200222
resolve "1.1.7"
201223

224+
buble@^0.19.2:
225+
version "0.19.3"
226+
resolved "https://registry.yarnpkg.com/buble/-/buble-0.19.3.tgz#01e9412062cff1da6f20342b6ecd72e7bf699d02"
227+
dependencies:
228+
acorn "^5.4.1"
229+
acorn-dynamic-import "^3.0.0"
230+
acorn-jsx "^4.1.1"
231+
chalk "^2.3.1"
232+
magic-string "^0.22.4"
233+
minimist "^1.2.0"
234+
os-homedir "^1.0.1"
235+
vlq "^1.0.0"
236+
202237
builtin-modules@^1.1.0:
203238
version "1.1.1"
204239
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
@@ -213,6 +248,14 @@ chalk@^1.1.3:
213248
strip-ansi "^3.0.0"
214249
supports-color "^2.0.0"
215250

251+
chalk@^2.3.1:
252+
version "2.4.1"
253+
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
254+
dependencies:
255+
ansi-styles "^3.2.1"
256+
escape-string-regexp "^1.0.5"
257+
supports-color "^5.3.0"
258+
216259
clone-buffer@^1.0.0:
217260
version "1.0.0"
218261
resolved "https://registry.yarnpkg.com/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58"
@@ -233,6 +276,16 @@ cloneable-readable@^1.0.0:
233276
process-nextick-args "^1.0.6"
234277
through2 "^2.0.1"
235278

279+
color-convert@^1.9.0:
280+
version "1.9.1"
281+
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed"
282+
dependencies:
283+
color-name "^1.1.1"
284+
285+
color-name@^1.1.1:
286+
version "1.1.3"
287+
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
288+
236289
237290
version "0.0.1"
238291
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -265,7 +318,7 @@ emojis-list@^2.0.0:
265318
version "2.1.0"
266319
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389"
267320

268-
escape-string-regexp@^1.0.2:
321+
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
269322
version "1.0.5"
270323
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
271324

@@ -354,6 +407,10 @@ has-ansi@^2.0.0:
354407
dependencies:
355408
ansi-regex "^2.0.0"
356409

410+
has-flag@^3.0.0:
411+
version "3.0.0"
412+
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
413+
357414
hash-sum@^1.0.2:
358415
version "1.0.2"
359416
resolved "https://registry.yarnpkg.com/hash-sum/-/hash-sum-1.0.2.tgz#33b40777754c6432573c120cc3808bbd10d47f04"
@@ -550,7 +607,7 @@ object.omit@^2.0.0:
550607
for-own "^0.1.4"
551608
is-extendable "^0.1.1"
552609

553-
os-homedir@^1.0.0:
610+
os-homedir@^1.0.0, os-homedir@^1.0.1:
554611
version "1.0.2"
555612
resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
556613

@@ -663,6 +720,13 @@ resolve@^1.1.6, resolve@^1.4.0:
663720
dependencies:
664721
path-parse "^1.0.5"
665722

723+
rollup-plugin-buble@^0.19.2:
724+
version "0.19.2"
725+
resolved "https://registry.yarnpkg.com/rollup-plugin-buble/-/rollup-plugin-buble-0.19.2.tgz#c0590c7d3d475b5ed59f129764ec93710cc6e8dd"
726+
dependencies:
727+
buble "^0.19.2"
728+
rollup-pluginutils "^2.0.1"
729+
666730
rollup-plugin-closure-compiler-js@^1.0.5:
667731
version "1.0.5"
668732
resolved "https://registry.yarnpkg.com/rollup-plugin-closure-compiler-js/-/rollup-plugin-closure-compiler-js-1.0.5.tgz#446da1230e90533216b7c954457aed67c38fb0e9"
@@ -750,6 +814,12 @@ supports-color@^2.0.0:
750814
version "2.0.0"
751815
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
752816

817+
supports-color@^5.3.0:
818+
version "5.4.0"
819+
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54"
820+
dependencies:
821+
has-flag "^3.0.0"
822+
753823
through2@^2.0.1:
754824
version "2.0.3"
755825
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be"
@@ -784,6 +854,10 @@ vlq@^0.2.1:
784854
version "0.2.3"
785855
resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.3.tgz#8f3e4328cf63b1540c0d67e1b2778386f8975b26"
786856

857+
vlq@^1.0.0:
858+
version "1.0.0"
859+
resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.0.tgz#8101be90843422954c2b13eb27f2f3122bdcc806"
860+
787861
vue-style-loader@^3.0.3:
788862
version "3.0.3"
789863
resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-3.0.3.tgz#623658f81506aef9d121cdc113a4f5c9cac32df7"

0 commit comments

Comments
 (0)