-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
I am using vue cli's webpack template and I tried including bootstrap-vue on the babel loader like this:
//...
const projectRootPath = path.resolve(__dirname, '../')
const srcPath = path.join(projectRootPath, 'src')
const bootstrapVuePath = path.join(projectRootPath, 'node_modules/bootstrap-vue')
//...
{
test: /\.js$/,
loader: 'babel',
include: [srcPath, bootstrapVueRoot]
},but it does not works, the files aren't being transpilled, they get imported raw and the browser throws Uncaught SyntaxError: Unexpected token import
Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels