Closed mikob closed 3 years ago
That's weird, can you post the build configuration?
Nothing too special.
"vue": "^3.0.11",
"esbuild": "^0.13.7",
"esbuild-plugin-vue3": "^0.2.4",
globby
.sync(["src/modules/shortcut-adder.ts"])
.map(async (file) => {
const splitted = file.split(/\.ts|\//);
const name = splitted[splitted.length - 2];
const esbuildRes = await esbuild.build({
entryPoints: [file],
bundle: true,
format: 'esm',
// null-coalescing not supported by node, needed by plugin-base.js module, which is needed by tests
target: 'es2017',
write: !IS_PROD,
minify: IS_PROD,
watch: options.watch,
pure: PURE_FUNCS,
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
...transform(featureFlags.FEATURE_FLAGS, (r, val, key) => r[`process.env.${key}`] = typeof process.env[key] !== 'undefined' ? `'${process.env[key]}'` : `'${val}'`),
},
loader: {
'.html': 'text',
'.svg': 'text',
},
plugins: [vuePlugin()],
outdir: 'package/dist/modules',
});
Just upgraded to:
vue: 3.2.20 esbuild: 0.13.8
and the problem went away. Will keep trying the plugin out!
Glad to hear!
really happy to find your point
Thanks for taking initiative with this library! I have SFCs that use
<script lang="ts">
and I get this error when trying to build with your plugin: