Closed yoyoys closed 1 year ago
@yoyoys try vite-plugin-external@1.2.3
@fengxinming can you provide an example using vite-plugin-react-refresh
?
@imjordanxd
import reactRefresh from 'vite-plugin-react-refresh';
export default function () {
return defineConfig({
plugins: [
reactRefresh({
parserPlugins: [
// ...
],
transformPlugins: [
'babel-plugin-jsx-advanced'
// ...
]
})
]
});
}
@imjordanxd
import reactRefresh from 'vite-plugin-react-refresh';
export default function () {
return defineConfig({
plugins: [
reactRefresh({
parserPlugins: [
// ...
],
transformPlugins: [
'babel-plugin-jsx-advanced'
// ...
]
})
]
});
}
@imjordanxd A part of code in @vitejs/plugin-react-refresh
const result = transformSync(code, {
parserOpts: {
plugins: [
// ...opts.parserPlugins
]
},
plugins: [
// ...opts.transformPlugins
]
})
vite-plugin-external
got wrong type,createExternal
must be function but not a type.