@rollup-extras/plugin-script-loader 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![Coverage](https://raw.githubusercontent.com/kshutkin/rollup-extras/refs/heads/coverage/plugin-script-loader/badge.svg)
2
+
1
3
  # Plugin Script Loader
2
4
 
3
5
  Rollup plugin to mimic Webpack's `script-loader` inline behavior. Inlines raw scripts into the bundle in import order, or emits them as a separate asset file for non-module, non-strict mode execution.
package/index.js CHANGED
@@ -190,7 +190,7 @@ export default function (options = {}) {
190
190
 
191
191
  const outputDir = _outputOptions.dir ?? (_outputOptions.file ? dirname(_outputOptions.file) : process.cwd());
192
192
 
193
- const magicBundle = new Bundle({ separator: '\n' });
193
+ const magicBundle = new Bundle({ separator: '\n;\n' });
194
194
 
195
195
  for (const entry of sortedEntries) {
196
196
  const ms = new MagicString(entry.code, {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.1",
2
+ "version": "0.1.2",
3
3
  "license": "MIT",
4
4
  "name": "@rollup-extras/plugin-script-loader",
5
5
  "author": "Konstantin Shutkin",