mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-16 19:57:49 +01:00
31 lines
582 B
JavaScript
31 lines
582 B
JavaScript
const CracoAlias = require("craco-alias");
|
|
const CracoSwcPlugin = require("craco-swc");
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
{
|
|
plugin: CracoAlias,
|
|
options: {
|
|
source: "tsconfig",
|
|
baseUrl: "./src",
|
|
tsConfigPath: "./tsconfig.extend.json",
|
|
},
|
|
},
|
|
{
|
|
plugin: CracoSwcPlugin,
|
|
options: {
|
|
swcLoaderOptions: {
|
|
jsc: {
|
|
target: "es2019",
|
|
transform: {
|
|
react: {
|
|
runtime: "automatic",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
};
|