Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'dojo-sync-loader': false,
'dojo-test-sniff': false,
'dijit-legacy-requires': false,
"dojo-loader": false,
"bug-for-in-skips-shadowed": false,
"dojo-debug-messages": false,
"highcontrast": false
}
}),
new DojoWebpackPlugin({
loaderConfig: require("./src/loaderConfig"),
environment: { dojoRoot: "./dist" }, // used at run time for non-packed resources (e.g. blank.gif)
buildEnvironment: { dojoRoot: "../../node_modules" }, // used at build time
locales: ["en"]
}),
new DojoWebpackPlugin.ScopedRequirePlugin(),
// For plugins registered after the DojoAMDPlugin, data.request has been normalized and
// resolved to an absMid and loader-config maps and aliases have been applied
new webpack.NormalModuleReplacementPlugin(/^dojox\/gfx\/renderer!/, "dojox/gfx/canvas"),
new webpack.NormalModuleReplacementPlugin(
/^css!/, function (data) {
data.request = data.request.replace(/^css!/, "!style-loader!css-loader!")
}
),
new webpack.NormalModuleReplacementPlugin(
/^xstyle\/css!/, function (data) {
data.request = data.request.replace(/^xstyle\/css!/, "!style-loader!css-loader!")
}
)
],
resolveLoader: {
modules: ["../../node_modules"]
before(() => {
DojoWebpackPluginApplyStub = sinon.stub(DojoWebpackPlugin.prototype, 'apply');
});