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.

Support to stubModules #66

@rubenspgcavalcante

Description

@rubenspgcavalcante

Hello there, I'm having a problem when using the async requirejs plugin. When optmized, the main file contains the following code

//shim requirejs config
// ...
leafletGoogleLayer: ['async!http://maps.google.com/maps/api/js', 'leaflet'],
// ...

The output:

// Tries to load (base-url)/async.js -> gives 404
define('leafletGoogleLayer', [
    'async!http://maps.google.com/maps/api/js',
    'leaflet'
], function () {
///...

But the plugin must be removed:

// Now it's correct!
define('leafletGoogleLayer', [
    'http://maps.google.com/maps/api/js',
    'leaflet'
], function () {
///...

The r.js have support to remove the plugins via stubModules config.
There's a way to do it in amd-optimize?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions