Skip to content

Commit 27ab162

Browse files
fix: sourcemap warning
removed duplicate transform
1 parent 8c55e55 commit 27ab162

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/plugins/rollup/rollup.compile.js

-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ export default function rollupConfig(app, params, ctx) {
2121
rollup: {
2222
plugins: [
2323
pluginsCfg.mainJsTransform,
24-
{
25-
// replace self.__ROXI with main.template.js's content
26-
transform: (code, id) => id.match(/[/\\]src[/\\]main.js$/)
27-
&& code.replace(/self\.__ROXI/,
28-
readFileSync(__dirname + '/../../shared/main.template.js', 'utf-8'))
29-
},
3024
svelte(app.config.svelte),
3125

3226
// resolve matching modules from current working directory

0 commit comments

Comments
 (0)