fis3-postpackager-loader icon indicating copy to clipboard operation
fis3-postpackager-loader copied to clipboard

resourceType: 'amd'没有返回amd格式的resourcemap

Open bingfeatcc opened this issue 8 years ago • 3 comments

fis.match('::package', {  
    postpackager: fis.plugin('loader', {
        resourceType: 'amd',
        useInlineMap: true
    })
});

我设置了resourceType: 'amd', 返回的老是mod.js 用的格式,如下

require.config({
    "res": {
        "widget/header/header.js": {
            "uri": "/widget/header/header.js",
            "type": "js",
            "deps": [
                "widget/header/Base.js"
            ]
        },
    },
    "pkg": {}
});

试了很久,不知道是什么原因。

bingfeatcc avatar May 24 '16 01:05 bingfeatcc

fis.hook('amd') ?

oxUnd avatar May 24 '16 04:05 oxUnd

这不科学啊,求 demo

2betop avatar May 24 '16 04:05 2betop

多谢,已经解决!是require.min.2.1.22.js的坑,把名字改成require.js就可以了。

bingfeatcc avatar May 24 '16 08:05 bingfeatcc