amd-optimize icon indicating copy to clipboard operation
amd-optimize copied to clipboard

here‘is an bug

Open deserthunter opened this issue 9 years ago • 0 comments

i have a file which is module,in this module,there has require in a method,when amd-optimize,it throws an error,example: E:\mysoft\UPUPW_AP5.6\htdocs\fraudect_report_test\frontend\node_modules\amd-opti mize\lib\trace.js:50 isText = moduleName.indexOf('text!') !== -1; ^

TypeError: Cannot read property 'indexOf' of undefined at resolveModuleName (E:\mysoft\UPUPW_AP5.6\htdocs\fraudect_report_test\fron tend\node_modules\amd-optimize\lib\trace.js:50:26)

gulpfile.js

gulp.src(['js/**/*.js'])
    .pipe(amdOptimize('framework', {
            configFile: './js/require_config.js',
            findNestedDependencies: true,
            preserveFiles:true,
        }))
        .pipe(uglify())
        .pipe(concat('frame.min.js'))
        .pipe(gulp.dest('build/js/'));
    }); 

my email: [email protected]

deserthunter avatar Aug 11 '16 10:08 deserthunter