traveling-salesman-bangkok/gatsby-node.js
Narongpol Kijrangsan 4a37207905
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
first and last commit
2025-03-10 17:28:26 +07:00

20 lines
355 B
JavaScript

exports.onCreateWebpackConfig = ({
actions: { replaceWebpackConfig },
getConfig
}) => {
const config = getConfig();
config.module.rules.push({
test: /\.worker\.js$/,
use: {
loader: "worker-loader",
options: {
inline: true
}
}
});
config.output.globalObject = "this";
replaceWebpackConfig(config);
};