Skip to content

Commit da66dbc

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 9cbbe32 commit da66dbc

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"babel-core": "^6.26.0",
4848
"babel-eslint": "^8.1.2",
4949
"babel-jest": "^22.0.4",
50+
"babel-loader": "^7.1.4",
5051
"babel-plugin-transform-class-properties": "^6.24.1",
5152
"babel-plugin-transform-export-extensions": "^6.22.0",
5253
"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
@@ -79,6 +79,10 @@ module.exports = {
7979
mimetype: 'image/svg+xml',
8080
name: '[name].[ext]'
8181
}
82+
},
83+
{
84+
test: /node_modules\/@novnc/,
85+
loader: 'babel-loader'
8286
}
8387
]
8488
}

0 commit comments

Comments
 (0)