Skip to content

Commit e0c2337

Browse files
author
Loïc Mangeonjean
committed
fix: fix asset loading
1 parent 775b913 commit e0c2337

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

rollup.config.ts

+2-11
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,9 @@ export default rollup.defineConfig({
4444
}],
4545
plugins: [
4646
importMetaAssets({
47-
include: ['**/customExtensions/*.ts']
47+
include: ['**/*.ts', '**/*.js'],
48+
exclude: ['**/worker.ts', '**/features/*.ts']
4849
}),
49-
{
50-
name: 'resolve-asset-url',
51-
resolveFileUrl (options) {
52-
let relativePath = options.relativePath
53-
if (!relativePath.startsWith('.')) {
54-
relativePath = `./${options.relativePath}`
55-
}
56-
return `'${relativePath}'`
57-
}
58-
},
5950
{
6051
name: 'external-resolver',
6152
resolveId (id) {

0 commit comments

Comments
 (0)