Skip to content

Commit 0fd32af

Browse files
committed
Add babel-loader for node_modules/@novnc
The noVNC npm package dist is ES6, it needs to be babelized for the storybook.
1 parent 13e583c commit 0fd32af

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"babel-core": "^6.26.0",
5050
"babel-eslint": "^8.2.2",
5151
"babel-jest": "^22.4.3",
52+
"babel-loader": "^7.1.4",
5253
"babel-plugin-transform-class-properties": "^6.24.1",
5354
"babel-plugin-transform-export-extensions": "^6.22.0",
5455
"babel-plugin-transform-object-assign": "^6.22.0",

storybook/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ module.exports = {
8080
mimetype: 'image/svg+xml',
8181
name: '[name].[ext]'
8282
}
83+
},
84+
{
85+
test: /node_modules\/@novnc/,
86+
loader: 'babel-loader'
8387
}
8488
]
8589
}

0 commit comments

Comments
 (0)