webpack-monkey

A webpack plugin for developing your userscripts with a modern workflow, featuring HMR, meta generation, and more.

MIT License

Downloads
189
Stars
36

Bot releases are hidden (Show)

webpack-monkey - v0.2.1 Latest Release

Published by guansss 12 months ago

  • fixed broken dev script
webpack-monkey - v0.2.0

Published by guansss about 1 year ago

Below are all the changes since v0.1.2:

v0.2.0

  • The option require no longer accpets a string or a function, now it only accepts an object.
  • Added option require.exportsFromUnnamed to suppress warning/error when using exports from an unnamed external module.
  • Changed TypeScript's compile target from es2017 to es2020, which has been supported on Node.js>=14

v0.2.0-beta.3

  • fixed UMD externals being incorrectly loaded in client script

v0.2.0-beta.2

None

v0.2.0-beta.1

  • merged monkey() option filter into ignore
  • prioritized meta.js over meta.ts when both exist
  • added Meta as an alias of UserscriptMeta
  • added colorette and terser-webpack-plugin as optional peer dependencies (already installed by webpack)
  • removed the use of ES modules in released code
    • now builds client code into CommonJS
    • removed conditional exports from package.json
  • removed unnecessary exports, only export the core parts: monkey(), MonkeyPlugin, MonkeyMinimizer
  • removed unused dependencies: lodash-es, tsc-alias, vite(I don't know why it was there)
  • removed the requirement of having a Prettier config to automatically enable output formatting
  • fixed @require not getting the correct version from external dependencies' package.json
webpack-monkey - v0.2.0-beta.3

Published by guansss about 1 year ago

v0.2.0-beta.1 was accidentally published with an empty package, what a mistake 😅

v0.2.0-beta.2 (not published) tried to fix that but couldn't.

v0.2.0-beta.3 should work. Edit: yeah it works but the readme is missing. Holy cats.

Additional changes:

  • fixed UMD externals being incorrectly loaded in client script
webpack-monkey - v0.2.0-beta.1

Published by guansss about 1 year ago

  • merged monkey() option filter into ignore
  • prioritized meta.js over meta.ts when both exist
  • added Meta as an alias of UserscriptMeta
  • added colorette and terser-webpack-plugin as optional peer dependencies (already installed by webpack)
  • removed the use of ES modules in released code
    • now builds client code into CommonJS
    • removed conditional exports from package.json
  • removed unnecessary exports, only export the core parts: monkey(), MonkeyPlugin, MonkeyMinimizer
  • removed unused dependencies: lodash-es, tsc-alias, vite(I don't know why it was there)
  • removed the requirement of having a Prettier config to automatically enable output formatting
  • fixed @require not getting the correct version from external dependencies' package.json
webpack-monkey - v0.1.2

Published by guansss about 1 year ago

First release! I made some mistakes when publishing to npm, so this is the first valid version.

Package Rankings
Top 19.81% on Npmjs.org
Badges
Extracted from project README
npm GitHub Workflow Status
Related Projects