19 lines
298 B
JavaScript
19 lines
298 B
JavaScript
|
const WorkerLoaderPlugin = require("./craco/worker-loader");
|
||
|
|
||
|
module.exports = function({ env }) {
|
||
|
return {
|
||
|
plugins: [
|
||
|
{
|
||
|
plugin: WorkerLoaderPlugin
|
||
|
}
|
||
|
],
|
||
|
webpack: {
|
||
|
configure: {
|
||
|
output: {
|
||
|
globalObject: "this"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
};
|