mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
test: add string for build.transpile
This commit is contained in:
parent
63520aa337
commit
a888136ac4
@ -15,7 +15,7 @@ describe('basic dev', () => {
|
||||
build: {
|
||||
stats: 'none',
|
||||
transpile: [
|
||||
'\\vue.test\\.js',
|
||||
'vue\\.test\\.js',
|
||||
/vue-test/
|
||||
],
|
||||
extend({ module: { rules } }, { isClient }) {
|
||||
@ -36,6 +36,7 @@ describe('basic dev', () => {
|
||||
expect(transpile('vue-test')).toBeUndefined()
|
||||
expect(transpile('node_modules/test.js')).toBe(true)
|
||||
expect(transpile('node_modules/vue-test')).toBe(false)
|
||||
expect(transpile('node_modules/vue.test.js')).toBe(false)
|
||||
expect(transpile('node_modules/test.vue.js')).toBe(false)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user