Skip to content

Commit

Permalink
Merge cac5311 into e39e35f
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jun 5, 2019
2 parents e39e35f + cac5311 commit b842867
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions modules/core/package.json
Expand Up @@ -24,6 +24,11 @@
"src",
"dist.min.js"
],
"sideEffects": [
"dist/es5/lib/init.js",
"dist/esm/lib/init.js",
"dist/es6/lib/init.js"
],
"scripts": {
"build-bundle": "webpack --config ../../scripts/bundle.config.js",
"prepublishOnly": "npm run build-bundle && npm run build-bundle -- --env.dev"
Expand Down
3 changes: 3 additions & 0 deletions modules/core/src/lib/init.js
Expand Up @@ -20,6 +20,7 @@

import {global} from '../utils/globals';
import log from '../utils/log';
import {initializeShaderModules} from '../shaderlib';

// Version detection using babel plugin
// Fallback for tests and SSR since global variable is defined by Webpack.
Expand All @@ -43,6 +44,8 @@ if (!global.deck) {
version,
log
};

initializeShaderModules();
}

// TODO - Hack, remove when luma.gl 4.1.0-alpha.5 is published
Expand Down
2 changes: 0 additions & 2 deletions modules/core/src/shaderlib/index.js
Expand Up @@ -39,6 +39,4 @@ export function initializeShaderModules() {
setDefaultShaderModules([project]);
}

initializeShaderModules();

export {fp32, fp64, picking, project, project64, gouraudlighting, phonglighting};
1 change: 1 addition & 0 deletions modules/main/package.json
Expand Up @@ -21,6 +21,7 @@
"src",
"dist.min.js"
],
"sideEffects": false,
"scripts": {
"build-bundle": "webpack --config ../../scripts/bundle.config.js",
"prepublishOnly": "npm run build-bundle && npm run build-bundle -- --env.dev"
Expand Down

0 comments on commit b842867

Please sign in to comment.