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 4b50543 commit aea6b3cCopy full SHA for aea6b3c
src/config/babelrc.js
@@ -19,7 +19,10 @@ const isCJS = BUILD_FORMAT === 'cjs'
19
const isWebpack = parseEnv('BUILD_WEBPACK', false)
20
const isMinify = parseEnv('BUILD_MINIFY', false)
21
const treeshake = parseEnv('BUILD_TREESHAKE', isRollup || isWebpack)
22
-const alias = parseEnv('BUILD_ALIAS', isPreact ? {react: 'preact'} : null)
+const alias = parseEnv(
23
+ 'BUILD_ALIAS',
24
+ isPreact ? {react: 'preact/compat'} : null,
25
+)
26
27
const hasBabelRuntimeDep = Boolean(
28
pkg.dependencies && pkg.dependencies['@babel/runtime'],
0 commit comments