Skip to content

Commit

Permalink
Add babel-loader for node_modules/@novnc
Browse files Browse the repository at this point in the history
The noVNC npm package dist is ES6, it needs to be babelized
for the storybook.
  • Loading branch information
mareklibra committed Apr 16, 2018
1 parent 13e583c commit 0fd32af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.3",
"babel-loader": "^7.1.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-object-assign": "^6.22.0",
Expand Down
4 changes: 4 additions & 0 deletions storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ module.exports = {
mimetype: 'image/svg+xml',
name: '[name].[ext]'
}
},
{
test: /node_modules\/@novnc/,
loader: 'babel-loader'
}
]
}
Expand Down

0 comments on commit 0fd32af

Please sign in to comment.