Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit be696dc

Browse files
committed
fix: Fix Code Blocker Output
1 parent 3eb9a34 commit be696dc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ yarn add source-replacement
1919

2020
Attach `source-replacement/build/executors/source-replacement` on the script tag in `<head>` or mark it as `async type=module`
2121

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
2323

2424
#### On your browser
2525

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "source-replacement",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"types": "build",
55
"deploy": "build",
66
"main": "build/index.js",

rollup.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export default [
2828
{
2929
input: 'src/executors/code-blocker/index.ts',
3030
output: {
31-
dir: config.deploy,
31+
file: path.resolve(config.deploy, 'code-blocker.js'),
3232
format: 'cjs',
33+
sourcemap: true,
3334
},
3435
plugins: sharedPlugins
3536
},
@@ -39,6 +40,7 @@ export default [
3940
dir: config.deploy,
4041
format: 'umd',
4142
name: 'SourceReplacement',
43+
sourcemap: true,
4244
},
4345
plugins: sharedPlugins,
4446
},

0 commit comments

Comments
 (0)