bundle-dts-webpack-plugin
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "bundle-dts-webpack-plugin", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "This library takes separate declaration asset files generated by the webpack build process and bundles them into one single declaration file. However it does so by recomposing the separate declarations as if all the classes and interfaces were defined as an __internal module__. Therefor, using this plugin only makes sense if you expose the classes and interfaces to the global module space yourself.", | ||
"main": "plugin.js", | ||
"scripts": { | ||
"prepublish": "npx tsc", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -18,5 +19,5 @@ }, | ||
"repository": { | ||
"type" : "git", | ||
"url" : "https://github.com/Hookyns/bundle-dts-webpack-plugin.git" | ||
"type": "git", | ||
"url": "https://github.com/Hookyns/bundle-dts-webpack-plugin.git" | ||
} | ||
} |
"use strict"; | ||
var IMPORT_REQUIRED_REGEX = /import\s+([a-z0-9A-Z_-]+)\s*=\s*require\(/; | ||
var IMPORT_REGEX = /import\s+([a-z0-9A-Z_-]+|(\{.*?\}))\s+from/; | ||
var IMPORT_REQUIRED_REGEX = /import\s+([a-z0-9A-Z_-]+)\s*=\s*require\(["']\./; | ||
var IMPORT_REGEX = /import\s+(([a-z0-9A-Z_-]+)|(\{.*?\})|(\*\s+as\s+[a-z0-9A-Z_-]+))\s+from\s*["']\./; | ||
var REEXPORT_REGEX = /export\s*\{[\s\S]*?\};/; | ||
@@ -5,0 +5,0 @@ var DECLARE_REGEX = /(^|\s)declare\s+/; |
9848