Skip to content

Commit

Permalink
fix: sourcemap warning
Browse files Browse the repository at this point in the history
removed duplicate transform
  • Loading branch information
jakobrosenberg committed Oct 9, 2020
1 parent 8c55e55 commit 27ab162
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/plugins/rollup/rollup.compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ export default function rollupConfig(app, params, ctx) {
rollup: {
plugins: [
pluginsCfg.mainJsTransform,
{
// replace self.__ROXI with main.template.js's content
transform: (code, id) => id.match(/[/\\]src[/\\]main.js$/)
&& code.replace(/self\.__ROXI/,
readFileSync(__dirname + '/../../shared/main.template.js', 'utf-8'))
},
svelte(app.config.svelte),

// resolve matching modules from current working directory
Expand Down

0 comments on commit 27ab162

Please sign in to comment.