Skip to content

Commit 6e13d9b

Browse files
committed
🐛 Fix undetected cjs requires caused by plugin order
1 parent 85528d9 commit 6e13d9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const plugins = [
3535
browser: true,
3636
}),
3737
typescript(),
38-
nodeGlobals(),
3938
cjs(),
39+
nodeGlobals(), // WARNING: Never move above CommonJS plugin!
4040
isProduction ? minifyLit({
4141
include: ['src/entry.ts', 'src/{components,views}/**', 'node_modules/@polymer/{paper,iron}-*/**'],
4242
includeExtension: ['.ts', '.js'],

0 commit comments

Comments
 (0)