Skip to content

Commit

Permalink
fix brfs regressions (visgl#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnavvy authored and Shaojing Li committed Mar 17, 2017
1 parent 0aa1bdb commit be1fafd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-2": "^6.3.13",
"brfs-babel": "^1.0.0",
"css-loader": "^0.26.1",
"eslint": "^3.0.0",
"eslint-config-uber-es2015": "^3.0.0",
Expand Down
3 changes: 3 additions & 0 deletions demo/webpack/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ module.exports = {
loader: 'raw-loader',
include: demoSources,
enforce: 'post'
}, {
test: /\.js$/,
loader: 'transform-loader?brfs-babel'
}]
},

Expand Down
10 changes: 10 additions & 0 deletions examples/layer-browser/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,20 @@ module.exports = {
test: /\.json$/,
loader: 'json-loader',
exclude: [/node_modules/]
},
{
// Needed to inline deck.gl GLSL shaders
include: [resolve(__dirname, '../sample-layers')],
loader: 'transform-loader',
options: 'brfs-babel'
}
]
},

node: {
fs: 'empty'
},

// Optional: Enables reading mapbox token from environment variable
plugins: [
new webpack.EnvironmentPlugin(['MAPBOX_ACCESS_TOKEN', 'MapboxAccessToken'])
Expand Down
3 changes: 2 additions & 1 deletion examples/webpack.config.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const LOCAL_DEV_CONFIG = {

function addLocalDevSettings(config) {
config.resolve = config.resolve || {};
Object.assign(config.resolve, {alias: LOCAL_DEV_CONFIG.resolve.alias});
config.resolve.alias = config.resolve.alias || {};
Object.assign(config.resolve.alias, LOCAL_DEV_CONFIG.resolve.alias);

config.module = config.module || {};
Object.assign(config.module, {
Expand Down

0 comments on commit be1fafd

Please sign in to comment.