mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
feat(vue-loader): import SFCs from dependencies
This commit is contained in:
parent
fe30ef3525
commit
bd97faec59
@ -139,7 +139,10 @@ export default class WebpackBaseConfig {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.jsx?$/,
|
test: /\.jsx?$/,
|
||||||
exclude: /node_modules/,
|
exclude: file => (
|
||||||
|
/node_modules/.test(file) &&
|
||||||
|
!/\.vue\.js/.test(file)
|
||||||
|
),
|
||||||
use: perfLoader.pool('js', {
|
use: perfLoader.pool('js', {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: this.getBabelOptions()
|
options: this.getBabelOptions()
|
||||||
|
Loading…
Reference in New Issue
Block a user