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 Mar 29, 2018
1 parent 9cbbe32 commit da66dbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"babel-core": "^6.26.0",
"babel-eslint": "^8.1.2",
"babel-jest": "^22.0.4",
"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 @@ -79,6 +79,10 @@ module.exports = {
mimetype: 'image/svg+xml',
name: '[name].[ext]'
}
},
{
test: /node_modules\/@novnc/,
loader: 'babel-loader'
}
]
}
Expand Down

0 comments on commit da66dbc

Please sign in to comment.