2019-10-03 12:32:45 -06:00
|
|
|
const WorkerLoaderPlugin = require("craco-worker-loader");
|
2019-09-26 16:22:56 -06:00
|
|
|
|
|
|
|
module.exports = function({ env }) {
|
|
|
|
return {
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
plugin: WorkerLoaderPlugin
|
|
|
|
}
|
|
|
|
],
|
|
|
|
webpack: {
|
|
|
|
configure: {
|
|
|
|
output: {
|
|
|
|
globalObject: "this"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|