rollup-plugin-svelte
Advanced tools
Comparing version 4.2.1 to 4.3.0
# rollup-plugin-svelte changelog | ||
## 4.3.0 | ||
* Append inline sourcemaps to virtual CSS files generated with `emitCss: true` ([#36](https://github.com/rollup/rollup-plugin-svelte/pull/36)) | ||
## 4.2.1 | ||
@@ -4,0 +8,0 @@ |
@@ -213,7 +213,11 @@ 'use strict'; | ||
let fname = id.replace('.html', '.css'); | ||
cssLookup.set(fname, compiled.css); | ||
if (options.emitCss) { | ||
const source_map_comment = `/*# sourceMappingURL=${compiled.css.map.toUrl()} */`; | ||
compiled.css.code += `\n${source_map_comment}`; | ||
compiled.js.code += `\nimport '${fname}';\n`; | ||
} | ||
cssLookup.set(fname, compiled.css); | ||
} | ||
@@ -220,0 +224,0 @@ |
@@ -209,7 +209,11 @@ import fs from 'fs'; | ||
let fname = id.replace('.html', '.css'); | ||
cssLookup.set(fname, compiled.css); | ||
if (options.emitCss) { | ||
const source_map_comment = `/*# sourceMappingURL=${compiled.css.map.toUrl()} */`; | ||
compiled.css.code += `\n${source_map_comment}`; | ||
compiled.js.code += `\nimport '${fname}';\n`; | ||
} | ||
cssLookup.set(fname, compiled.css); | ||
} | ||
@@ -216,0 +220,0 @@ |
{ | ||
"name": "rollup-plugin-svelte", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "Compile Svelte components with Rollup", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-svelte.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21101
444