Skip to content

Commit

Permalink
Move bundle.js into src (keep module roots clean) (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Apr 14, 2019
1 parent aaff679 commit 063d7da
Show file tree
Hide file tree
Showing 25 changed files with 75 additions and 75 deletions.
@@ -1,5 +1,5 @@
/* global window, global */
const moduleExports = require('./src');
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};
Expand Down
2 changes: 1 addition & 1 deletion modules/arrow/bundle.js → modules/arrow/src/bundle.js
@@ -1,5 +1,5 @@
/* global window, global */
const moduleExports = require('./src');
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};
Expand Down
2 changes: 1 addition & 1 deletion modules/core/bundle.js → modules/core/src/bundle.js
@@ -1,5 +1,5 @@
/* global window, global */
const moduleExports = require('./src');
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};
Expand Down
2 changes: 1 addition & 1 deletion modules/csv/bundle.js → modules/csv/src/bundle.js
@@ -1,5 +1,5 @@
/* global window, global */
const moduleExports = require('./src');
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};
Expand Down
7 changes: 0 additions & 7 deletions modules/draco/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/draco/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/experimental/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/experimental/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/gltf/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/gltf/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/images/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/images/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/kml/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/kml/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/las/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/las/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/obj/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/obj/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/pcd/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/pcd/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/ply/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/ply/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
7 changes: 0 additions & 7 deletions modules/zip/bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions modules/zip/src/bundle.js
@@ -0,0 +1,7 @@
/* global window, global */
const moduleExports = require('./index');

const _global = typeof window === 'undefined' ? global : window;
_global.loaders = _global.loaders || {};

module.exports = Object.assign(_global.loaders, moduleExports);
2 changes: 1 addition & 1 deletion scripts/bundle.config.js
Expand Up @@ -46,7 +46,7 @@ const config = {
mode: 'production',

entry: {
main: resolve('./bundle')
main: resolve('./src/bundle')
},

output: {
Expand Down

0 comments on commit 063d7da

Please sign in to comment.