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

Commit

Permalink
fix: Fix Code Blocker Output
Browse files Browse the repository at this point in the history
  • Loading branch information
ReiiYuki committed Mar 31, 2022
1 parent 3eb9a34 commit be696dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ yarn add source-replacement

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

In your source import `source-replacement/build/executors/code-blocker` to prevent executing your source during the process of replacement
In your source import `source-replacement/build/code-blocker.js` to prevent executing your source during the process of replacement

#### On your browser

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "source-replacement",
"version": "2.0.0",
"version": "2.0.1",
"types": "build",
"deploy": "build",
"main": "build/index.js",
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export default [
{
input: 'src/executors/code-blocker/index.ts',
output: {
dir: config.deploy,
file: path.resolve(config.deploy, 'code-blocker.js'),
format: 'cjs',
sourcemap: true,
},
plugins: sharedPlugins
},
Expand All @@ -39,6 +40,7 @@ export default [
dir: config.deploy,
format: 'umd',
name: 'SourceReplacement',
sourcemap: true,
},
plugins: sharedPlugins,
},
Expand Down

0 comments on commit be696dc

Please sign in to comment.