Browse Source

Find nested deps. Stop using lazypack.

Herby Vojčík 5 years ago
parent
commit
3585d2a30a
3 changed files with 9 additions and 8 deletions
  1. 5 2
      Gruntfile.js
  2. 4 2
      grunt-init-project/root/Gruntfile.js
  3. 0 4
      lang/base/lazypack.js

+ 5 - 2
Gruntfile.js

@@ -91,7 +91,9 @@ module.exports = function (grunt) {
                     pragmas: {
                         // none, for repl to have all info
                     },
-                    include: ['app', 'amber/lazypack', '__app__'],
+                    include: ['app'],
+                    findNestedDependencies: true,
+                    exclude: ['helios/index'],
                     insertRequire: ['app'],
                     optimize: "none",
                     wrap: helpers.nodeWrapperWithShebang,
@@ -115,7 +117,8 @@ module.exports = function (grunt) {
                     pragmas: {
                         // none, amber tests test contexts as well as eg. class copying which needs sources
                     },
-                    include: ['app', 'amber/lazypack', '__app__'],
+                    include: ['app'],
+                    findNestedDependencies: true,
                     insertRequire: ['app'],
                     optimize: "none",
                     wrap: helpers.nodeWrapperWithShebang,

+ 4 - 2
grunt-init-project/root/Gruntfile.js

@@ -67,7 +67,8 @@ module.exports = function (grunt) {
                         excludeIdeData: true,
                         excludeDebugContexts: true
                     },
-                    include: ['config', 'node_modules/requirejs/require', 'app', 'amber/lazypack', '__app__'],
+                    include: ['config', 'node_modules/requirejs/require', 'app'],
+                    findNestedDependencies: true,
                     optimize: "uglify2",
                     out: "the.js"
                 }
@@ -102,7 +103,8 @@ module.exports = function (grunt) {
                     pragmas: {
                         excludeIdeData: true
                     },
-                    include: ['app', 'amber/lazypack', '__app__'],
+                    include: ['app'],
+                    findNestedDependencies: true,
                     insertRequire: ['app'],
                     optimize: "none",
                     wrap: helpers.nodeWrapperWithShebang,

+ 0 - 4
lang/base/lazypack.js

@@ -1,4 +0,0 @@
-// Depend on each module that is loaded lazily.
-// Add to packager tasks as dependency,
-// so the lazy-loaded modules are included.
-define(['./kernel-runtime'], {});