esbuild-plugin-raw
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -21,2 +21,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -33,4 +37,4 @@ mod | ||
module.exports = __toCommonJS(src_exports); | ||
var import_promises = require("fs/promises"); | ||
var import_path = __toESM(require("path")); | ||
var import_promises = require("fs/promises"); | ||
function rawPlugin() { | ||
@@ -60,3 +64,1 @@ return { | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = {}); |
{ | ||
"name": "esbuild-plugin-raw", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "esbuild plugin for raw import", | ||
@@ -28,21 +28,23 @@ "license": "MIT", | ||
"bugs": "https://github.com/hannoeru/esbuild-plugin-raw/issues", | ||
"peerDependencies": { | ||
"esbuild": "^0.14.36 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^0.20.0" | ||
}, | ||
"devDependencies": { | ||
"@hannoeru/eslint-config": "^0.9.7", | ||
"@types/node": "^20.11.22", | ||
"esbuild": "^0.20.1", | ||
"eslint": "^8.57.0", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.3.3" | ||
}, | ||
"scripts": { | ||
"dev": "npm run build -- --watch", | ||
"build": "tsup src/index.ts --dts --format cjs,esm --clean", | ||
"prepublishOnly": "npm run build", | ||
"release": "npx git-ensure -a && npx bumpp --push --tag --commit", | ||
"example:serve": "npm -C example run serve", | ||
"example:build": "npm -C example run build" | ||
}, | ||
"peerDependencies": { | ||
"esbuild": "^0.14.36 || ^0.15.0" | ||
}, | ||
"devDependencies": { | ||
"@hannoeru/eslint-config": "^0.8.10", | ||
"@types/node": "^17.0.23", | ||
"esbuild": "^0.15.11", | ||
"eslint": "^8.25.0", | ||
"tsup": "^6.2.3", | ||
"typescript": "^4.8.4" | ||
"example:build": "npm -C example run build", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"type-check": "tsc --noEmit" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
6735
9
101