Files
rowy/craco.config.js

31 lines
582 B
JavaScript
Raw Normal View History

2021-09-02 12:16:40 +10:00
const CracoAlias = require("craco-alias");
2021-09-01 15:54:20 +10:00
const CracoSwcPlugin = require("craco-swc");
module.exports = {
2021-09-01 15:59:30 +10:00
plugins: [
2021-09-02 12:16:40 +10:00
{
plugin: CracoAlias,
options: {
source: "tsconfig",
baseUrl: "./src",
tsConfigPath: "./tsconfig.extend.json",
},
},
2021-09-01 15:59:30 +10:00
{
plugin: CracoSwcPlugin,
options: {
swcLoaderOptions: {
jsc: {
target: "es2019",
transform: {
react: {
runtime: "automatic",
},
},
},
},
},
},
],
2021-09-01 15:54:20 +10:00
};