requirejs-esm 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api.js +5748 -5564
- package/dist/api.js.map +1 -1
- package/dist/plugin.js +5673 -5564
- package/dist/plugin.js.map +1 -1
- package/package.json +12 -12
- package/src/api.d.ts +28 -0
- package/src/api.js +1 -0
- package/src/transform.js +2 -3
- package/src/transformer/amd.js +86 -8
- package/src/transformer/esm.js +72 -0
- package/src/transformer/index.js +9 -5
- package/src/transformer/keywords.js +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Reference ESM source files files via the `esm!` plugin prefix:
|
|
|
35
35
|
```javascript
|
|
36
36
|
define(['esm!your-esm-module'], function (module) {
|
|
37
37
|
// ...
|
|
38
|
-
})
|
|
38
|
+
})
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
You can use the ESM module format in modules loaded by the `esm!` plugin including the keyword `import` for loading nested dependencies. The plugin `esm!` has to be used only in the topmost `require` or `define` statement.
|