Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 21637be

Browse files
fix: revert process usage in templates
As it would break if the user previously has a component data property named "process".
1 parent 1327b0d commit 21637be

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎buble‎

‎test.js‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ const transpile = require('./index')
22
const Vue = require('vue')
33
const { compile } = require('vue-template-compiler')
44

5-
process.env.BAR = 'bar'
6-
75
test('should work', () => {
86
const res = compile(`
97
<div>
10-
<div>{{ foo }} {{ process.env.BAR }}</div>
8+
<div>{{ foo }}</div>
119
<div v-for="{ name } in items">{{ name }}</div>
1210
<div v-bind="{ ...a, ...b }"/>
1311
</div>
@@ -34,7 +32,7 @@ test('should work', () => {
3432
}).$mount()
3533

3634
expect(vm.$el.innerHTML).toMatch(
37-
`<div>hello bar</div> ` +
35+
`<div>hello</div> ` +
3836
`<div>foo</div><div>bar</div> ` +
3937
`<div id="foo" class="bar"></div>`
4038
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /