1.1.0 • Published 1 year ago
webpack-local-module v1.1.0
webpack-local-module
write virtual module into disk
install
pnpm i webpack-local-module -D
usage
register plugin in config
const rspack = require('@rspack/core')
const { WebpackLocalModule } = require('webpack-local-module')
/**
* @type {import('@rspack/cli').Configuration}
*/
module.exports = {
// ...other config
plugins: [
new WebpackLocalModule({
'virtual-module': 'export const id = "virtual-module"',
}),
],
}
import virtual-module
in project, e.g.
import vm from 'virtual-module'
options
options.dirname
- type
string
- default
.rlm
plugin write module content into <root>/node_modules/.rlm
dir by default
built with ❤️ by 😼
1.1.0
1 year ago
0.0.0-snapshot-20240421031609
1 year ago
1.0.1
1 year ago
0.0.0-snapshot-20240220091417
1 year ago
1.0.0
1 year ago
0.0.0-snapshot-20240220090442
1 year ago
0.0.0-snapshot-20240220082832
1 year ago
0.0.0-snapshot-20240220081547
1 year ago
0.0.0-snapshot-20240220074003
1 year ago
0.0.0-snapshot-20240220065620
1 year ago