We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6c2e6 commit 0095409Copy full SHA for 0095409
rollup.config.js
@@ -88,7 +88,33 @@ const baseConfig = {
88
extensions,
89
exclude: /node_modules/,
90
babelHelpers: 'inline',
91
- babelrc: false
+ babelrc: false,
92
+ configFile: false,
93
+ presets: [
94
+ '@babel/preset-typescript',
95
+ [
96
+ '@babel/preset-react',
97
+ {
98
+ modules: false
99
+ }
100
+ ]
101
+ ],
102
+ plugins: [
103
+ 'macros',
104
+ 'preval',
105
+ 'add-react-displayname',
106
+ 'babel-plugin-styled-components',
107
+ '@babel/plugin-proposal-nullish-coalescing-operator',
108
+ '@babel/plugin-proposal-optional-chaining',
109
110
+ 'babel-plugin-transform-replace-expressions',
111
112
+ replace: {
113
+ __DEV__: "process.env.NODE_ENV !== 'production'"
114
115
116
117
118
}),
119
commonjs(),
120
resolve({
0 commit comments