Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from web-infra-dev/add-node-polyfill
Browse files Browse the repository at this point in the history
chore: add node-polyfill-webpack-plugin
  • Loading branch information
bvanjoi authored Dec 20, 2023
2 parents 53e165d + a7eaad2 commit 675d463
Show file tree
Hide file tree
Showing 4 changed files with 588 additions and 3 deletions.
13 changes: 13 additions & 0 deletions packages/node-polyfill-webpack-plugin@3/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@rspack-compat/polyfill-webpack-plugin_3",
"scripts": {
"build": "rspack build"
},
"devDependencies": {
"@rspack/cli": "0.3.11",
"node-polyfill-webpack-plugin": "3.0.0"
},
"rspack": {
"version": ">=0.3.11"
}
}
9 changes: 9 additions & 0 deletions packages/node-polyfill-webpack-plugin@3/rspack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

const polyfillPlugin = require('node-polyfill-webpack-plugin');
module.exports = {
mode: 'none',
entry: {
main: './src/index.js'
},
plugins: [new polyfillPlugin()]
}
2 changes: 2 additions & 0 deletions packages/node-polyfill-webpack-plugin@3/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import path from 'path';
console.log('path');
Loading

0 comments on commit 675d463

Please sign in to comment.