Merge branch 'main' of github.com:wbkd/react-flow into main
This commit is contained in:
Generated
+11559
-10
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -15,7 +15,7 @@ const processEnv = isProd || isTesting ? 'production' : 'development';
|
|||||||
|
|
||||||
export const baseConfig = ({ mainFile = pkg.main, moduleFile = pkg.module, injectCSS = true } = {}) => ({
|
export const baseConfig = ({ mainFile = pkg.main, moduleFile = pkg.module, injectCSS = true } = {}) => ({
|
||||||
input: 'src/index.ts',
|
input: 'src/index.ts',
|
||||||
external: ['react', 'react-dom', /@babel\/runtime/],
|
external: ['react', 'react-dom', (id) => id.includes('@babel/runtime')],
|
||||||
onwarn(warning, rollupWarn) {
|
onwarn(warning, rollupWarn) {
|
||||||
if (warning.code !== 'CIRCULAR_DEPENDENCY') {
|
if (warning.code !== 'CIRCULAR_DEPENDENCY') {
|
||||||
rollupWarn(warning);
|
rollupWarn(warning);
|
||||||
@@ -51,10 +51,10 @@ export const baseConfig = ({ mainFile = pkg.main, moduleFile = pkg.module, injec
|
|||||||
babelHelpers: 'runtime',
|
babelHelpers: 'runtime',
|
||||||
}),
|
}),
|
||||||
svgr(),
|
svgr(),
|
||||||
|
resolve(),
|
||||||
typescript({
|
typescript({
|
||||||
clean: true,
|
clean: true,
|
||||||
}),
|
}),
|
||||||
resolve(),
|
|
||||||
commonjs({
|
commonjs({
|
||||||
include: 'node_modules/**',
|
include: 'node_modules/**',
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user