File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ Any `devTool` (source maps) option used in Webpack is supported. This includes "
20
20
Install the package from NPM and require or import it for your Webpack configuration:
21
21
22
22
``` js
23
- const TransformAsyncModulesPlugin = require (" transform-async-modules-webpack-plugin" );
23
+ const {
24
+ TransformAsyncModulesPlugin ,
25
+ } = require (" transform-async-modules-webpack-plugin" );
24
26
```
25
27
26
28
or
27
29
28
30
``` js
29
- import TransformAsyncModulesPlugin from " transform-async-modules-webpack-plugin" ;
31
+ import { TransformAsyncModulesPlugin } from " transform-async-modules-webpack-plugin" ;
30
32
```
31
33
32
34
Then add an instance to the plugins array:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " transform-async-modules-webpack-plugin" ,
3
3
"description" : " A Webpack plugin to transpile async module output using Babel. Allows transpiling top level await to ES5." ,
4
- "version" : " 1.0.1 " ,
4
+ "version" : " 1.0.2 " ,
5
5
"license" : " MIT" ,
6
6
"homepage" : " https://github.com/steverep/transform-async-modules-webpack-plugin" ,
7
7
"keywords" : [
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export type TransformAsyncModulesPluginOptions = Pick<
10
10
11
11
const PLUGIN_NAME = "TransformAsyncModulesPlugin " as const ;
12
12
13
- export default class TransformAsyncModulesPlugin {
13
+ export class TransformAsyncModulesPlugin {
14
14
babelOptions : TransformOptions = { } ;
15
15
16
16
constructor ( options : TransformAsyncModulesPluginOptions = { } ) {
You can’t perform that action at this time.
0 commit comments