@chialab/esbuild-plugin-meta-url
Advanced tools
Comparing version 0.15.37 to 0.15.38
import path from 'path'; | ||
import { isUrl, hasSearchParam, appendSearchParam } from '@chialab/node-resolve'; | ||
import { isUrl, appendSearchParam } from '@chialab/node-resolve'; | ||
import { parse, walk, getIdentifierValue, getBlock, getLocation, TokenType } from '@chialab/estransform'; | ||
@@ -159,8 +159,2 @@ import { useRna } from '@chialab/esbuild-rna'; | ||
if (hasSearchParam(value, 'emit')) { | ||
// already emitted | ||
helpers.overwrite(startToken.start, endToken.end, `new URL('${value}', ${baseUrl})`); | ||
return; | ||
} | ||
promises.push(Promise.resolve().then(async () => { | ||
@@ -167,0 +161,0 @@ const requestName = value.split('?')[0]; |
{ | ||
"name": "@chialab/esbuild-plugin-meta-url", | ||
"type": "module", | ||
"version": "0.15.37", | ||
"version": "0.15.38", | ||
"description": "A file loader plugin for esbuild for constructed URLs using import metadata.", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"types": "tsc", | ||
"types": "rimraf 'types' '*.tsbuildinfo' && tsc --declaration --emitDeclarationOnly --declarationDir ./types", | ||
"prepack": "yarn types" | ||
@@ -44,5 +44,5 @@ }, | ||
"esbuild": "^0.14.8", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.3.0" | ||
}, | ||
"gitHead": "c6158f6389f7ddeb04c7015a2d63c5243442407a" | ||
} | ||
} |
13974
3
240