3.0.0 • Published 1 year ago
@krakenjs/webpack-mem-compile v3.0.0
webpack memory compile
Compile from a webpack config to a string in memory.
Install
npm install --save @krakenjs/webpack-mem-compile
Note: this package is requires webpack@4 as a peer dependency
Use
Using a webpack config with an entry point:
import { webpackCompile } from '@krakenjs/webpack-mem-compile';
const code = await webpackCompile({
webpack,
config: {
entry: 'foo.js';
}
})
Using raw code:
import { webpackCompile } from "@krakenjs/webpack-mem-compile";
const code = await webpackCompile({
webpack,
code: `
console.log('Hello World!');
`,
});
4.0.0-next.5
1 year ago
4.0.0-next.4
1 year ago
4.0.0-next.1
1 year ago
4.0.0-next.3
1 year ago
4.0.0-next.2
1 year ago
3.0.0-typescript.4
3 years ago
3.0.0-typescript.3
3 years ago
3.0.0-typescript.2
3 years ago
3.0.0-typescript.1
3 years ago
3.0.0
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago