refactor(packages): change package structure

This commit is contained in:
moklick
2023-06-05 15:40:18 +02:00
parent b2e296901e
commit 8354759f57
332 changed files with 980 additions and 3244 deletions
+5 -1
View File
@@ -41,10 +41,14 @@ export const esmConfig = defineConfig({
],
});
const globals = {
const reactGlobals = {
react: 'React',
'react-dom': 'ReactDOM',
'react/jsx-runtime': 'jsxRuntime',
};
const globals = {
...(pkg.rollup?.vanilla ? {} : reactGlobals),
...(pkg.rollup?.globals || {}),
};