Skip to content

Commit 9d98988

Browse files
feat: Use window for dynamic import (#178)
* Use window for dynamic import * Address 422 running actions
1 parent 0ee58ce commit 9d98988

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Set up Node ${{ matrix.node-version }}
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
cache: "yarn"

config/webpack/webpack-dynamic-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const prodConfig = {
1313
output: {
1414
path: outputPath,
1515
libraryTarget: 'umd',
16-
globalObject: 'this',
16+
globalObject: 'window',
1717
filename: '[name].min.js'
1818
},
1919
optimization: {

0 commit comments

Comments
 (0)