Skip to content

Commit

Permalink
Fix Error: Package subpath './compiler.js' ...
Browse files Browse the repository at this point in the history
Error: Package subpath './compiler.js' is not defined by "exports" in node_modules/svelte/package.json
More info: Samuel-Martineau/generator-svelte#7 (comment)
  • Loading branch information
d34dman committed Apr 6, 2021
1 parent 9ae18dd commit 128e2b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-livereload": "^1.0.4",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-svelte": "^5.1.1",
"rollup-plugin-svelte": "^6.1.1",
"rollup-plugin-terser": "^5.2.0",
"sirv-cli": "^0.4.5",
"start-server-and-test": "^1.10.8",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const config = production ? ({
svelte({
dev: !production,
preprocess: preprocess(preprocessOptions),
css: css => css.write('public/bundle.css'),
css: css => css.write('bundle.css'),
}),
resolve(),
commonjs(),
Expand Down

0 comments on commit 128e2b6

Please sign in to comment.