@pi-r/rollup 0.12.5 → 0.13.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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -122,7 +122,7 @@ async function transform(context, value, options) {
122
122
  }
123
123
  Object.assign(outputConfig, external);
124
124
  }
125
- if (baseConfig.external) {
125
+ if (baseConfig.external && (options.hasEval('function') || options.hasEval('regexp'))) {
126
126
  baseConfig.external = asArray(baseConfig.external).map(specifier => {
127
127
  if (typeof specifier === 'string') {
128
128
  const match = /^\/(\^)?(?:[^/]|(?<=\\)\/)+?(\$)?\/[dgimsuvy]*$/.exec(specifier);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/rollup",
3
- "version": "0.12.5",
3
+ "version": "0.13.0",
4
4
  "description": "Rollup transform function for E-mc.",
5
5
  "main": "index.js",
6
6
  "repository": {