chushihua

This commit is contained in:
li
2026-01-26 23:20:48 +08:00
commit 7b5aab0206
22521 changed files with 3300090 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
node_modules
*.log
src
+35
View File
@@ -0,0 +1,35 @@
# babel-plugin-syntax-dynamic-import
Allow parsing of `import()`.
## Installation
```sh
$ npm install babel-plugin-syntax-dynamic-import
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["syntax-dynamic-import"]
}
```
### Via CLI
```sh
$ babel --plugins syntax-dynamic-import script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["syntax-dynamic-import"]
});
```
+13
View File
@@ -0,0 +1,13 @@
"use strict";
exports.__esModule = true;
exports.default = function () {
return {
manipulateOptions: function manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("dynamicImport");
}
};
};
module.exports = exports["default"];
+13
View File
@@ -0,0 +1,13 @@
{
"name": "babel-plugin-syntax-dynamic-import",
"version": "6.18.0",
"description": "Allow parsing of import()",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-dynamic-import",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"babel-plugin"
],
"dependencies": {},
"devDependencies": {}
}