|
|
@ -30,12 +30,12 @@ export default [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
file: `index.mjs`,
|
|
|
|
file: `index.mjs`,
|
|
|
|
format: 'esm',
|
|
|
|
format: 'esm',
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '.')}`
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '.')}/index.mjs`
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
file: `index.js`,
|
|
|
|
file: `index.js`,
|
|
|
|
format: 'cjs',
|
|
|
|
format: 'cjs',
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '.')}`
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '.')}/index.js`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external,
|
|
|
|
external,
|
|
|
@ -50,12 +50,12 @@ export default [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
file: `${dir}/index.mjs`,
|
|
|
|
file: `${dir}/index.mjs`,
|
|
|
|
format: 'esm',
|
|
|
|
format: 'esm',
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '..')}`
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '..')}/index.mjs`
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
file: `${dir}/index.js`,
|
|
|
|
file: `${dir}/index.js`,
|
|
|
|
format: 'cjs',
|
|
|
|
format: 'cjs',
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '..')}`
|
|
|
|
paths: id => id.startsWith('svelte/') && `${id.replace('svelte', '..')}/index.js`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external,
|
|
|
|
external,
|
|
|
|