1
どのようにシムを入れますかPromise
webpack.ProvidePlugin
〜require('q').Promise
?モジュールのエクスポートされたプロパティを使用してwebpack.ProvidePluginをシムします
webpack.config.js
で$
シミング:
plugins: [ new webpack.ProvidePlugin({ '$': 'jquery' }) ]
q.Promise
を使用してPromise
をshimmigための同等とは何ですか?
// attempt:
plugins: [ new webpack.ProvidePlugin({ Promise: 'q.Promise' }) ]