Created
July 2, 2021 04:18
-
-
Save fserb/446fe26b5a78957c83793bf159e5bed3 to your computer and use it in GitHub Desktop.
Build lit into a single javascript file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "lit", | |
"license": "MIT", | |
"scripts": { | |
"build": "npm install && rollup -c" | |
}, | |
"dependencies": { | |
"@rollup/plugin-node-resolve": "^13.0.0", | |
"lit": "^2.0.0-rc.2", | |
"rollup": "^2.52.7" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import resolve from '@rollup/plugin-node-resolve'; | |
export default { | |
input: './node_modules/lit/index.js', | |
plugins: [ | |
resolve({ | |
browser: true, | |
}), | |
], | |
preserveEntrySignatures: true, | |
output: { | |
inlineDynamicImports: true, | |
format: 'es', | |
name: 'main', | |
sourcemap: false, | |
file: 'lit.js' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment