Skip to content

Commit

Permalink
[skip ci] Issue #63 Update rollup.config.js with plugin options for b…
Browse files Browse the repository at this point in the history
…abel-plugin-bundled-import-meta
  • Loading branch information
t2ym committed Mar 10, 2019
1 parent 0d4d855 commit 86d2ea1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rollup.config.js
Expand Up @@ -24,7 +24,13 @@ export default {
'@babel/plugin-syntax-import-meta',
// rollup rewrites import.meta.url, but makes them point to the file location after bundling
// we want the location before bundling
'bundled-import-meta',
[ 'bundled-import-meta', {
'mappings': {
'node_modules': '/node_modules'
},
'bundleDir': '.',
'importStyle': 'esm',
} ],
],
presets: [
minifyPreset({}, {
Expand Down

0 comments on commit 86d2ea1

Please sign in to comment.