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

Commit 70818c2

Browse files
committed
fix: produce deterministic css class names for css modules
The actual fix is in @vue/component-compiler by @przemkow
1 parent 5fa9682 commit 70818c2

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
"dist/"
4646
],
4747
"dependencies": {
48-
"@vue/component-compiler": "^4.2.1",
48+
"@vue/component-compiler": "^4.2.2",
4949
"@vue/component-compiler-utils": "^3.1.2",
5050
"debug": "^4.1.1",
5151
"hash-sum": "^1.0.2",
5252
"magic-string": "^0.25.7",
5353
"querystring": "^0.2.0",
54-
"rollup-pluginutils": "^2.4.1",
54+
"rollup-pluginutils": "^2.8.2",
5555
"source-map": "0.7.3",
56-
"vue-runtime-helpers": "^1.1.1"
56+
"vue-runtime-helpers": "^1.1.2"
5757
},
5858
"devDependencies": {
5959
"@babel/core": "^7.0.0-beta.46",

src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ interface TemplateOptionsRollup extends TemplateOptions {
170170
}
171171

172172
interface VueCompilerOptions {
173-
script?: ScriptOptions | undefined;
174-
style?: StyleOptions | undefined;
175-
template?: TemplateOptionsRollup | undefined;
173+
script?: ScriptOptions | undefined
174+
style?: StyleOptions | undefined
175+
template?: TemplateOptionsRollup | undefined
176176
}
177177
/**
178178
* Rollup plugin for handling .vue files.
@@ -261,7 +261,7 @@ export default function vue(opts: Partial<VuePluginOptions> = {}): Plugin {
261261

262262
if (opts.css === false) d('Running in CSS extract mode')
263263

264-
const getCompiler = ({ scopeId }: { scopeId?: string}) => {
264+
const getCompiler = ({ scopeId }: { scopeId?: string }) => {
265265
const options: VueCompilerOptions = { ...opts }
266266

267267
options.template = {

yarn.lock

+17-18
Original file line numberDiff line numberDiff line change
@@ -1451,10 +1451,10 @@
14511451
optionalDependencies:
14521452
prettier "^1.18.2"
14531453

1454-
"@vue/component-compiler@^4.2.1":
1455-
version "4.2.1"
1456-
resolved "https://registry.yarnpkg.com/@vue/component-compiler/-/component-compiler-4.2.1.tgz#7708915f0e336726e4deea85ae7a0321c80fb680"
1457-
integrity sha512-HcvvAOuiwdVlPr94ocsn7AynSv6LAX9VctCgkeRzm+jy0N8GC9rEzGLCQgIRahk+IOoj9DwijGc+JC8/czvhkQ==
1454+
"@vue/component-compiler@^4.2.2":
1455+
version "4.2.2"
1456+
resolved "https://registry.yarnpkg.com/@vue/component-compiler/-/component-compiler-4.2.2.tgz#84e4f37b7ab8c63bfd10e84513a60d7c82c805d4"
1457+
integrity sha512-UnoyFmuIUelD5gtyFEZSLewfa8lH07hBjcp3U0jX5NjMqXIERPz+xtkM2DpwIh2HKjdnneQttaG6M2EJAOWvVg==
14581458
dependencies:
14591459
"@vue/component-compiler-utils" "^3.0.0"
14601460
clean-css "^4.1.11"
@@ -4205,10 +4205,10 @@ estree-walker@^0.5.2:
42054205
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.5.2.tgz#d3850be7529c9580d815600b53126515e146dd39"
42064206
integrity sha512-XpCnW/AE10ws/kDAs37cngSkvgIR8aN3G0MS85m7dUpuK2EREo9VJ00uvw6Dg/hXEpfsE1I1TvJOJr+Z+TL+ig==
42074207

4208-
estree-walker@^0.6.0:
4209-
version "0.6.0"
4210-
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.0.tgz#5d865327c44a618dde5699f763891ae31f257dae"
4211-
integrity sha512-peq1RfVAVzr3PU/jL31RaOjUKLoZJpObQWJJ+LgfcxDUifyLZ1RjPQZTl0pzj2uJ45b7A7XpyppXvxdEqzo4rw==
4208+
estree-walker@^0.6.1:
4209+
version "0.6.1"
4210+
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362"
4211+
integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==
42124212

42134213
esutils@^2.0.2:
42144214
version "2.0.2"
@@ -9027,13 +9027,12 @@ rollup-pluginutils@^1.5.0, rollup-pluginutils@^1.5.1, rollup-pluginutils@^1.5.2:
90279027
estree-walker "^0.2.1"
90289028
minimatch "^3.0.2"
90299029

9030-
rollup-pluginutils@^2.4.1:
9031-
version "2.4.1"
9032-
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.4.1.tgz#de43ab54965bbf47843599a7f3adceb723de38db"
9033-
integrity sha512-wesMQ9/172IJDIW/lYWm0vW0LiKe5Ekjws481R7z9WTRtmO59cqyM/2uUlxvf6yzm/fElFmHUobeQOYz46dZJw==
9030+
rollup-pluginutils@^2.8.2:
9031+
version "2.8.2"
9032+
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e"
9033+
integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==
90349034
dependencies:
9035-
estree-walker "^0.6.0"
9036-
micromatch "^3.1.10"
9035+
estree-walker "^0.6.1"
90379036

90389037
rollup@^0.34.7:
90399038
version "0.34.13"
@@ -10317,10 +10316,10 @@ vue-router@^3.0.1:
1031710316
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.0.2.tgz#dedc67afe6c4e2bc25682c8b1c2a8c0d7c7e56be"
1031810317
integrity sha512-opKtsxjp9eOcFWdp6xLQPLmRGgfM932Tl56U9chYTnoWqKxQ8M20N7AkdEbM5beUh6wICoFGYugAX9vQjyJLFg==
1031910318

10320-
vue-runtime-helpers@^1.1.1:
10321-
version "1.1.1"
10322-
resolved "https://registry.yarnpkg.com/vue-runtime-helpers/-/vue-runtime-helpers-1.1.1.tgz#5f9422d4e958478060800afe738df40de7c9f653"
10323-
integrity sha512-L20UdZnvY9Tmvf7yWJmN2kzlK/KyCFLAXOIUbm7yyRfjDqub6vC1CUrkLH7XGM+GRO8MnBap6uUYvgQTJ1yOOQ==
10319+
vue-runtime-helpers@^1.1.2:
10320+
version "1.1.2"
10321+
resolved "https://registry.yarnpkg.com/vue-runtime-helpers/-/vue-runtime-helpers-1.1.2.tgz#446b7b820888ab0c5264d2c3a32468e72e4100f3"
10322+
integrity sha512-pZfGp+PW/IXEOyETE09xQHR1CKkR9HfHZdnMD/FVLUNI+HxYTa82evx5WrF6Kz4s82qtqHvMZ8MZpbk2zT2E1Q==
1032410323

1032510324
vue-server-renderer@^2.5.16:
1032610325
version "2.5.22"

0 commit comments

Comments
 (0)