mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-11-07 16:18:19 +00:00
Replacing amd output format with cjs
Vite 8 no longer support that. I will have to implement plugin to convert modules into `amd` myself.
This commit is contained in:
1 parent
2b337e2fd6
commit
5435e055c3
1 file changed
+3
-6
@@ -194,13 +194,10 @@ export async function buildScriptsAndStyles(buildOptions) {
|
||||
dir: buildOptions.outputDir,
|
||||
entryFileNames: '[name].js',
|
||||
chunkFileNames: 'chunks/[name]-[hash].js',
|
||||
// ManifestV3 doesn't allow to use modern ES modules syntax, so we build all content scripts as AMD modules.
|
||||
format: "amd",
|
||||
// Vite 8 no longer have support for `amd` format extension depends on
|
||||
// TODO Make plugin to live-convert cjs module require/exports into AMD
|
||||
format: "cjs",
|
||||
inlineDynamicImports: false,
|
||||
amd: {
|
||||
// amd-lite requires names even for the entry-point scripts, so we should make sure to add those.
|
||||
autoId: true,
|
||||
},
|
||||
// All these modules are not intended to be used outside of extension anyway
|
||||
minifyInternalExports: true,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user