@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.
- package/README.md +2 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+

|
|
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