Skip to content

Commit

Permalink
fix: fix asset loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Apr 17, 2024
1 parent 775b913 commit e0c2337
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,9 @@ export default rollup.defineConfig({
}],
plugins: [
importMetaAssets({
include: ['**/customExtensions/*.ts']
include: ['**/*.ts', '**/*.js'],
exclude: ['**/worker.ts', '**/features/*.ts']
}),
{
name: 'resolve-asset-url',
resolveFileUrl (options) {
let relativePath = options.relativePath
if (!relativePath.startsWith('.')) {
relativePath = `./${options.relativePath}`
}
return `'${relativePath}'`
}
},
{
name: 'external-resolver',
resolveId (id) {
Expand Down

0 comments on commit e0c2337

Please sign in to comment.