Skip to content

Commit

Permalink
Webpack rule to transpile draco3d
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed Apr 19, 2019
1 parent 3beca99 commit 1a8d896
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ const COMMON_CONFIG = {
{
test: /\.(eot|svg|ttf|woff|woff2|gif|jpe?g|png)$/,
loader: 'url-loader'
},
{
// Compile ES2015 using babel
// draco3d contains untrasnspiled ES6, which
// causes the website to break in IE
test: /draco3d.js$/,
loader: 'babel-loader',
options: BABEL_CONFIG,
include: [resolve('..'), libSources],
}
]
},
Expand Down

0 comments on commit 1a8d896

Please sign in to comment.