Jurriaan Mous
01/24/2023, 11:00 AMSyntaxError: Importing binding name 'exportedFunction' is not found.
Did somebody else managed to get it to work? Or see an obvious thing which I am missing?
I currently use this `vite.config.ts`:
export default defineConfig({
optimizeDeps: {
force: true,
include: ['../build/js/packages/kotlinProject-shared-libary']
},
build: {
outDir: 'build',
commonjsOptions: {
include: ['../build/js/packages/kotlinProject-shared-libary', /node_modules/]
}
},
plugins: [],
})
CLOVIS
01/24/2023, 11:08 AMJurriaan Mous
01/24/2023, 11:12 AMCLOVIS
01/24/2023, 11:20 AMdemo:web → demo → style:material → style:material-tailwind → style:material-common → core
All modules are Kotlin multiplatform libraries (including JS) except demo:web
which is a JS executable module, hence why it's the one with the Vite config. It has two main tasks, developmentExecutableCompileSync
(created by the Kotlin plugin, to which I added the configuration for Vite etc) that you can run with --continuous
. It already compiles all modules you depend on in parallel and adds their final JS files in the correct place. You then just have to start Vite in the correct folder.Jurriaan Mous
01/25/2023, 9:04 AM