Closed stalkerg closed 3 years ago
Interesting, I have svelte.config.cjs
so just use const precompileIntl = require("svelte-intl-precompile/sveltekit-plugin");
I might have to generate both systems
I just released 0.3.0 that allows you to use import precompileIntl from 'svelte-intl-precompile/sveltekit-plugin.js';
I also updated the readme since sveltekit is now generating a svelte.config.js
by default (it used to generate a svelte.config.cjs
before).
Currently, svelte.config.js is an ES6 module and svelte-intl-precompile should support it. In the current situation, I should write: