This repository was archived by the owner on Aug 23, 2023. It is now read-only.
File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ yarn add source-replacement
19
19
20
20
Attach ` source-replacement/build/executors/source-replacement ` on the script tag in ` <head> ` or mark it as ` async type=module `
21
21
22
- In your source import ` source-replacement/build/executors/ code-blocker ` to prevent executing your source during the process of replacement
22
+ In your source import ` source-replacement/build/code-blocker.js ` to prevent executing your source during the process of replacement
23
23
24
24
#### On your browser
25
25
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " source-replacement" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"types" : " build" ,
5
5
"deploy" : " build" ,
6
6
"main" : " build/index.js" ,
Original file line number Diff line number Diff line change @@ -28,8 +28,9 @@ export default [
28
28
{
29
29
input : 'src/executors/code-blocker/index.ts' ,
30
30
output : {
31
- dir : config . deploy ,
31
+ file : path . resolve ( config . deploy , 'code-blocker.js' ) ,
32
32
format : 'cjs' ,
33
+ sourcemap : true ,
33
34
} ,
34
35
plugins : sharedPlugins
35
36
} ,
@@ -39,6 +40,7 @@ export default [
39
40
dir : config . deploy ,
40
41
format : 'umd' ,
41
42
name : 'SourceReplacement' ,
43
+ sourcemap : true ,
42
44
} ,
43
45
plugins : sharedPlugins ,
44
46
} ,
You can’t perform that action at this time.
0 commit comments