Skip to content
This repository was archived by the owner on May 14, 2018. It is now read-only.
This repository was archived by the owner on May 14, 2018. It is now read-only.

here‘is an bug #73

@deserthunter

Description

@deserthunter

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: peiweili@altamob.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions