@herberttn/bytenode-webpack-plugin
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -0,1 +1,8 @@ | ||
## [1.2.3](https://github.com/herberttn/bytenode-webpack-plugin/compare/v1.2.2...v1.2.3) (2021-04-23) | ||
### Bug Fixes | ||
* normalize loader import path to compiled file ([1bb918f](https://github.com/herberttn/bytenode-webpack-plugin/commit/1bb918f7320ba5a1a172c050e52d7e33066e6592)) | ||
## [1.2.2](https://github.com/herberttn/bytenode-webpack-plugin/compare/v1.2.1...v1.2.2) (2021-04-10) | ||
@@ -2,0 +9,0 @@ |
@@ -13,2 +13,3 @@ "use strict"; | ||
const webpack_virtual_modules_1 = __importDefault(require("webpack-virtual-modules")); | ||
const loader_1 = require("./loader"); | ||
v8_1.default.setFlagsFromString('--no-lazy'); | ||
@@ -116,3 +117,3 @@ class BytenodeWebpackPlugin { | ||
if (!e.dependency) { | ||
virtualModules.push([e.location, createLoaderCode(relativeImportPath)]); | ||
virtualModules.push([e.location, loader_1.createLoaderCode(relativeImportPath)]); | ||
} | ||
@@ -221,8 +222,2 @@ } | ||
exports.BytenodeWebpackPlugin = BytenodeWebpackPlugin; | ||
function createLoaderCode(relativePath) { | ||
return ` | ||
require('bytenode'); | ||
require('${relativePath}'); | ||
`; | ||
} | ||
function prepare(context, location, name, suffix = '') { | ||
@@ -229,0 +224,0 @@ const locationArray = Array.isArray(location) ? location : [location]; |
{ | ||
"name": "@herberttn/bytenode-webpack-plugin", | ||
"description": "Compile JavaScript into bytecode using bytenode", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"license": "MIT", | ||
@@ -46,2 +46,3 @@ "repository": { | ||
"semantic-release": "17.4.2", | ||
"slash": "3.0.0", | ||
"ts-jest": "26.5.4", | ||
@@ -48,0 +49,0 @@ "ts-node": "9.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38104
20
374
19