tw-plugin-webpack 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -172,7 +172,7 @@ Details:
172
172
  ## Notes & caveats
173
173
 
174
174
  - **One file only.** TurboWarp loads a single `<script>`, so don't use dynamic `import()` / code splitting — keep it one synchronous bundle.
175
- - **`Scratch` is a global**, not an import. Your editor/linter may flag it; declare it as a readonly global (e.g. in ESLint `languageOptions.globals`). For TypeScript, [`@turbowarp/types`](https://github.com/TurboWarp/types) provides the `Scratch` typings.
175
+ - **`Scratch` is a global**, not an import. Your editor/linter may flag it; declare it as a readonly global (e.g. in ESLint `languageOptions.globals`). For TypeScript, [`@turbowarp/types`](https://github.com/TurboWarp/types) provides the `Scratch` typings for **Scratch** extensions. If you're targeting **TurboWarp or one of its forks**, use [`types-tw`](https://github.com/TurboWarp/types-tw) instead, which adds the TurboWarp-specific APIs. It's no longer published to npm, so install it from git — it keeps the `@turbowarp/types` package name as a drop-in replacement: `npm install @turbowarp/types@git+https://github.com/TurboWarp/types-tw.git#tw`.
176
176
  - **Source maps:** prefer `devtool: false`. A trailing `//# sourceMappingURL=` comment would otherwise sit in the middle of the wrapped file.
177
177
 
178
178
  ## Is a plugin the best way to do this?
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tw-plugin-webpack",
3
3
  "description": "Bundle a multi-file TurboWarp/Scratch extension into a single unsandboxed-extension file with webpack or Rspack.",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
7
7
  "author": "playforge-coding",