3.0.0 • Published 3 months 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
3 months ago
4.0.0-next.4
3 months ago
4.0.0-next.1
3 months ago
4.0.0-next.3
3 months ago
4.0.0-next.2
3 months ago
3.0.0-typescript.4
1 year ago
3.0.0-typescript.3
1 year ago
3.0.0-typescript.2
1 year ago
3.0.0-typescript.1
1 year ago
3.0.0
1 year ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago