This commit is contained in:
Norbert de Langen 2022-06-22 23:15:43 +02:00
parent 232c36fa2d
commit d547a12415
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
2 changed files with 18 additions and 1 deletions

View File

@ -25,5 +25,19 @@ export const webpackFinal: StorybookConfig['webpack'] = (config, { presetsList }
checkForNewPreset(presetsList);
}
}
config.module?.rules?.push(
...[
{
test: /\.m?js$/,
type: 'javascript/auto',
},
{
test: /\.m?js$/,
resolve: {
fullySpecified: false,
},
},
]
);
return config;
};

View File

@ -34,7 +34,10 @@
"require": "./package.json",
"import": "./package.json",
"types": "./package.json"
}
},
"./templates/HOC.svelte": "./templates/HOC.svelte",
"./templates/PreviewRender.svelte": "./templates/PreviewRender.svelte",
"./templates/SlotDecorator.svelte": "./templates/SlotDecorator.svelte"
},
"main": "dist/index.js",
"module": "dist/index.mjs",