Skip to content

Commit 1117847

Browse files
committed
FIX: build browser test js file
1 parent b0faaa5 commit 1117847

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

SPEC.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
- `createProgressPlugin`
2828
+ 📄 [source/browser/resource.js](source/browser/resource.js)
2929
- `loadImage`, `loadScript`, `loadText`
30+
+ 📄 [source/browser/test.js](source/browser/test.js)
31+
- `createTest`
3032
+ 📄 [source/common/dev.js](source/common/dev.js)
3133
- `createTransformCacheWithInfo`, `hijackSetTimeoutInterval`
3234
+ 📄 [source/common/config/Nginx.js](source/common/config/Nginx.js)

script/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runKit(async (kit) => {
66

77
const config = getCommonWebpackConfig({
88
output: { path: kit.fromOutput('browser'), filename: '[name].js', library: 'DrDevTest', libraryTarget: 'umd' },
9-
entry: { 'test': 'source/common/test' }
9+
entry: { 'test': 'source/browser/test.js' }
1010
})
1111

1212
kit.padLog(`compile with webpack mode: ${mode}, isWatch: ${Boolean(isWatch)}`)

source/browser/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { createTest } from '@dr-js/core/module/common/test.js' // NOTE: will later build with webpack as single file

0 commit comments

Comments
 (0)