Skip to content

Commit 1b6f4cf

Browse files
author
Jannik Zschiesche
committed
Clarify npm compilation
1 parent 1dbdcdf commit 1b6f4cf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
* (internal) Bumped all dependencies.
3434
* (improvement) Allow `++` in JS/TS code.
3535
* (improvement) The code is now always compiled per entry file
36-
* (improvement) Ignore `.css` files when compiling webpack. You need to import them manually in your SCSS.
3736
* (improvement) Build TypeScript for the `esnext` module system, that (amongst other things) allows to use `import()`.
3837
* (bug) Compile every entry into a separate directory, to avoid issues with the clean plugin.
39-
* (bc) Now only specific modules in `node_modules` are transformed. You need to set your packages explicity via `.compileNpmPackages()`.
38+
* (bc) Now only specific modules in `node_modules` are transformed. You need to set your packages explicity via `.compileNpmPackages(...)`.
4039
* (feature) Even if not recommended (use SCSS!), we now support compiling CSS via webpack (not as entry point though). The CSS will be injected into the head dynamically.
4140

4241

UPGRADE.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Always build a legacy and a modern JS build.
66
* Removed the ability to use the project's `tsconfig.json`.
77
* Removed `disableChunkSplitting()`, chunk splitting is now always disabled. Use code splitting instead and remove the call to this method.
8+
* Now no npm package is built anymore. Define your npm packages that need a transformation via `.compileNpmPackages(...)` (for now only top-level entries support, so either complete vendor or global package name).
89

910

1011
7.x to 8.0

src/Kaba.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ export class Kaba
7272
private buildModern: boolean = true;
7373
private nodeSettings: webpack.Node|false = false;
7474
private compiledNpmPackages: CompiledNpmPackagesMapping = {
75-
preact: true,
76-
mojave: true,
75+
'@becklyn': true,
7776
'@mayd': true,
77+
mojave: true,
78+
preact: true,
7879
};
7980
private postCssLoaderOptions: PostCssLoaderOptions = {};
8081

0 commit comments

Comments
 (0)