@rollup/plugin-babel 7.1.0 → 7.2.0
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/dist/cjs/index.js +2 -2
- package/dist/cjs/{transformCode-47UZeDHQ.js → transformCode-DUYIPFFB.js} +1 -1
- package/dist/cjs/worker.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/{transformCode-yk-f524P.js → transformCode-9oxl0Xfj.js} +1 -1
- package/dist/es/worker.js +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var url = require('url');
|
|
|
7
7
|
var babel = require('@babel/core');
|
|
8
8
|
var pluginutils = require('@rollup/pluginutils');
|
|
9
9
|
var workerpool = require('workerpool');
|
|
10
|
-
var transformCode = require('./transformCode-
|
|
10
|
+
var transformCode = require('./transformCode-DUYIPFFB.js');
|
|
11
11
|
require('@babel/helper-module-imports');
|
|
12
12
|
|
|
13
13
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -138,7 +138,7 @@ function findNonSerializableOption(obj) {
|
|
|
138
138
|
}
|
|
139
139
|
return null;
|
|
140
140
|
}
|
|
141
|
-
const WORKER_PATH = url.fileURLToPath(new URL('./worker.js', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.js', document.baseURI).href))));
|
|
141
|
+
const WORKER_PATH = url.fileURLToPath(new URL('./worker.js', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href))));
|
|
142
142
|
function createParallelWorkerPool(parallel, overrides) {
|
|
143
143
|
if (typeof parallel === 'number' && (!Number.isInteger(parallel) || parallel < 1)) {
|
|
144
144
|
throw new Error('The "parallel" option must be true or a positive integer specifying the number of workers.');
|
|
@@ -173,4 +173,4 @@ exports.HELPERS = HELPERS;
|
|
|
173
173
|
exports.escapeRegExpCharacters = escapeRegExpCharacters;
|
|
174
174
|
exports.transformCode = transformCode;
|
|
175
175
|
exports.warnOnce = warnOnce;
|
|
176
|
-
//# sourceMappingURL=transformCode-
|
|
176
|
+
//# sourceMappingURL=transformCode-DUYIPFFB.js.map
|
package/dist/cjs/worker.js
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { fileURLToPath } from 'url';
|
|
|
3
3
|
import * as babel from '@babel/core';
|
|
4
4
|
import { createFilter } from '@rollup/pluginutils';
|
|
5
5
|
import workerpool from 'workerpool';
|
|
6
|
-
import { e as escapeRegExpCharacters, H as HELPERS, t as transformCode, w as warnOnce, B as BUNDLED } from './transformCode-
|
|
6
|
+
import { e as escapeRegExpCharacters, H as HELPERS, t as transformCode, w as warnOnce, B as BUNDLED } from './transformCode-9oxl0Xfj.js';
|
|
7
7
|
import '@babel/helper-module-imports';
|
|
8
8
|
|
|
9
9
|
const unpackOptions = ({
|
package/dist/es/worker.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/plugin-babel",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@babel/core": "^7.0.0",
|
|
43
43
|
"@types/babel__core": "^7.1.9",
|
|
44
|
-
"rollup": "^2.
|
|
44
|
+
"rollup": "^2.78.0||^3.0.0||^4.0.0||^5.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"rollup": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@rollup/plugin-json": "^5.0.0",
|
|
67
67
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
68
68
|
"@types/babel__core": "^7.1.9",
|
|
69
|
-
"rollup": "
|
|
69
|
+
"rollup": "catalog:rollup-next",
|
|
70
70
|
"source-map": "^0.7.4"
|
|
71
71
|
},
|
|
72
72
|
"types": "./types/index.d.ts",
|