I want to load some type of file dynamically excute some action but
include it in build.
- exports.instantiate = function(load) {
- load.metadata.deps = [];
-
- load.metadata.execute = function(){
-
- if(load.source) {
- /// some action here
- }
- return System.newModule({});
- };
- load.metadata.format = "some";
- };
Why build I've got:
ERROR: undefined undefined
Potentially unhandled rejection [30] transpile - unable to
transpile some to amd (WARNING: non-Error used)
Process finished with exit code 0
How to exclude this type of file from build process? (but load it
dynamically in production)